fix circular import errors so the server and start again

This commit is contained in:
2026-04-06 04:30:02 +02:00
parent 98be2fe6fe
commit 43c7720480
8 changed files with 39 additions and 18 deletions
+6 -2
View File
@@ -1,4 +1,8 @@
from server.GameBoard import GameBoard
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from server.GameBoard import GameBoard
import random
class TemplateSnake:
@@ -22,7 +26,7 @@ class TemplateSnake:
def add_calculations(self, calculations:dict):
self.calculations.append(calculations)
def choose_move(self, game_data:GameBoard):
def choose_move(self, game_data:'GameBoard'):
self.game_board = game_data
self.calculations = []
self.eat_the_snake_overwrite = False