update litris with board detection
This commit is contained in:
@@ -70,8 +70,8 @@ class Litris(GameBase):
|
|||||||
self.move_stone(column - offset_col, rotation)
|
self.move_stone(column - offset_col, rotation)
|
||||||
self.drop_down()
|
self.drop_down()
|
||||||
print(self.field)
|
print(self.field)
|
||||||
if self.field.get_line_count() >= 6 and self.field.height() <= 2:
|
if self.field.get_line_count() >= 6 and self.field.height() <= 1:
|
||||||
if self.field.predict_gaps_in_next_rotation() <= 5:
|
if self.field.predict_gaps_in_next_rotation() <= 3:
|
||||||
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user