diff --git a/AI.py b/AI.py index 1580644..eb2ffc6 100644 --- a/AI.py +++ b/AI.py @@ -13,7 +13,6 @@ def __init__(self): # this function is called in the beginning for deck picking and pre process def pick(self, world: World): print("pick started!") - # pre process map = world.get_map() self.rows = map.row_num diff --git a/model.py b/model.py index fe6abd6..743b38a 100644 --- a/model.py +++ b/model.py @@ -58,7 +58,6 @@ class Player: spells: List["Spell"] range_upgraded_unit: Optional["Unit"] damage_upgraded_unit: Optional["Unit"] - _spells_dict: Dict[int, int] = {} def __init__(self, player_id: int, deck: List["BaseUnit"], hand: List["BaseUnit"], ap: int, king: "King", @@ -84,6 +83,7 @@ def __init__(self, player_id: int, deck: List["BaseUnit"], hand: List["BaseUnit" self.spells = spells self.range_upgraded_unit = range_upgraded_unit # unit that last turn the player upgraded range of it self.damage_upgraded_unit = damage_upgraded_unit # unit that last turn the player upgraded damage of it + self._spells_dict = {} def is_alive(self) -> bool: return self.king.is_alive