update litris with board detection

This commit is contained in:
2023-07-29 20:20:11 +02:00
parent c9081bd371
commit 07d00404d8
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ from config_file import UserConfigs
# load the original input image and display it to our screen # load the original input image and display it to our screen
#filename = "equip/chests/chest_23_32" #filename = "equip/chests/chest_23_32"
path = "equip/wands/" path = "flappy/"
os.chdir(path) os.chdir(path)
for entry in os.listdir(): for entry in os.listdir():

View File

@@ -73,7 +73,7 @@ class Litris(GameBase):
if self.field.get_line_count() >= 6 and self.field.height() <= 2: if self.field.get_line_count() >= 6 and self.field.height() <= 2:
if self.field.predict_gaps_in_next_rotation() <= 5: if self.field.predict_gaps_in_next_rotation() <= 5:
self.update_move_mode() self.update_move_mode()
self.field = 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()
#self.update_move_mode() #self.update_move_mode()
self.field.reset_half_field() self.field.reset_half_field()