Skip to content

Commit 6f8a830

Browse files
committed
print unit
1 parent 9911360 commit 6f8a830

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

AI.py

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def pick(self, world: World):
3232
# it is called every turn for doing process during the game
3333
def turn(self, world: World):
3434
print("turn started:", world.get_current_turn())
35+
3536
myself = world.get_me()
3637
max_ap = world.get_game_constants().max_ap
3738

model.py

+2
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def __init__(self, base_unit: "BaseUnit", cell: "Cell", unit_id: int, hp: int, p
149149
self.is_hasted = is_hasted
150150
self.affected_spells = affected_spells
151151

152+
def __str__(self):
153+
return "<unit : " + self.base_unit.__str__() + ">"
152154

153155
class SpellTarget(Enum):
154156
SELF = 1

0 commit comments

Comments
 (0)