make find_safe_positions function be useable for more posisions

This commit is contained in:
2024-04-18 19:52:19 +02:00
parent 8a2a62ef57
commit 87690177a5
2 changed files with 45 additions and 31 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class BetterMasterSnake(TemplateSnake):
self.board = game_data['board']
self.find_safe_positions()
self.safe_positions = self.find_safe_positions(add_to_calculations=True)
if self.eat_the_snake_overwrite:
return self.overwrite_eat_the_other_snake(game_data["turn"])