update litris with board detection

This commit is contained in:
2023-07-30 10:57:43 +02:00
parent b24a835f18
commit ab0def9115

View File

@@ -82,7 +82,7 @@ class Litris(GameBase):
print(self.field) print(self.field)
if self.field.get_line_count() >= 6 and self.field.height() <= 2 and self.field.check_crucial_pos_to_be_free(): if self.field.get_line_count() >= 6 and self.field.height() <= 2 and self.field.check_crucial_pos_to_be_free():
if self.field.predict_gaps_in_next_rotation() <= 3: if self.field.predict_gaps_in_next_rotation() <= 3:
self.field_state_storage[self.move_mode] = self.field self.field_state_storage[self.move_mode] = copy(self.field)
self.update_move_mode() self.update_move_mode()
#self.field.state = self.stone_id_thread.get_current_board_state() #self.field.state = self.stone_id_thread.get_current_board_state()
self.field.rotate_state() self.field.rotate_state()