From 7a539e301b2b78c3ba56b29ab56af952da925054 Mon Sep 17 00:00:00 2001 From: Thaloria Date: Sat, 29 Jul 2023 21:43:48 +0200 Subject: [PATCH] update litris with board detection --- litris.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litris.py b/litris.py index 3c5dd7d..6ab3da3 100644 --- a/litris.py +++ b/litris.py @@ -70,7 +70,7 @@ 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() <= 1 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: self.update_move_mode()