Skip to content

Commit 8de9c05

Browse files
committed
_spell_dict is now an instance variable
1 parent 8bb1d60 commit 8de9c05

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AI.py

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def pick(self, world: World):
3030
# it is called every turn for doing process during the game
3131
def turn(self, world: World):
3232
print("turn started:", world.get_current_turn())
33+
3334
myself = world.get_me()
3435
max_ap = world.get_game_constants().max_ap
3536
# play all of hand once your ap reaches maximum. if ap runs out, putUnit doesn't do anything

model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Player:
5656
spells: List["Spell"]
5757
range_upgraded_unit: Optional["Unit"]
5858
damage_upgraded_unit: Optional["Unit"]
59-
_spells_dict: Dict[int, int] = {}
59+
_spells_dict: Dict[int, int]
6060

6161
def __init__(self, player_id: int, deck: List["BaseUnit"], hand: List["BaseUnit"], ap: int, king: "King",
6262
paths_from_player: List["Path"], path_to_friend: "Path", units: List["Unit"],

0 commit comments

Comments
 (0)