From 2fa02557617447fb743acb4fb095bc52901f1b60 Mon Sep 17 00:00:00 2001 From: Thaloria Date: Sat, 29 Jul 2023 19:34:12 +0200 Subject: [PATCH] flappy init --- field.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/field.py b/field.py index 7182537..4e3b31f 100644 --- a/field.py +++ b/field.py @@ -154,6 +154,8 @@ 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 ' ': + return 10 for row in range(int(self.HEIGHT/2)): tmp_state[row] = [' ' for cols in range(Field.WIDTH)] return sum(