From a9b76cde970003a594a1ba7ed202ae9e35a74617 Mon Sep 17 00:00:00 2001 From: Thaloria Date: Sat, 29 Jul 2023 19:42:17 +0200 Subject: [PATCH] flappy init --- field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/field.py b/field.py index 4e3b31f..7f4d20b 100644 --- a/field.py +++ b/field.py @@ -154,7 +154,7 @@ class Field(): def predict_gaps_in_next_rotation(self): tmp_state = copy(self.state) tmp_state = self.rotate_90_degree_anticlckwise(tmp_state) - if tmp_state[9][0] is not ' ' and tmp_state[9][1] is not ' ': + if tmp_state[10][0] is not ' ' and tmp_state[10][1] is not ' ': return 10 for row in range(int(self.HEIGHT/2)): tmp_state[row] = [' ' for cols in range(Field.WIDTH)]