From d3ace50341a8c0bb965d887f762fc5a5b5579b51 Mon Sep 17 00:00:00 2001 From: Thaloria Date: Sat, 29 Jul 2023 21:14:13 +0200 Subject: [PATCH] update litris with board detection --- litris.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litris.py b/litris.py index baedd25..de3a33d 100644 --- a/litris.py +++ b/litris.py @@ -70,8 +70,8 @@ class Litris(GameBase): self.move_stone(column - offset_col, rotation) self.drop_down() print(self.field) - if self.field.get_line_count() >= 6 and self.field.height() <= 2: - if self.field.predict_gaps_in_next_rotation() <= 5: + if self.field.get_line_count() >= 6 and self.field.height() <= 1: + if self.field.predict_gaps_in_next_rotation() <= 3: self.update_move_mode() #self.field.state = self.stone_id_thread.get_current_board_state()