update litris with board detection

This commit is contained in:
2023-07-29 21:30:00 +02:00
parent 332190394d
commit c3e677ca0a
2 changed files with 6 additions and 1 deletions

View File

@@ -151,6 +151,11 @@ class Field():
def check_crucial_pos_to_be_free(self):
if self.field.state[19][9] == ' ' and self.field.state[19][10] == ' ' and self.field.state[18][9] == ' ' and self.field.state[18][10] == ' ':
return True
return False
def predict_gaps_in_next_rotation(self):
tmp_state = copy(self.state)
tmp_state = self.rotate_90_degree_anticlckwise(tmp_state)