fix circular import errors so the server and start again
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user