Skip to content

Commit

Permalink
choose deck test
Browse files Browse the repository at this point in the history
  • Loading branch information
HamidrezaKmK committed Feb 4, 2020
1 parent efdedf4 commit 8622e3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 3 additions & 8 deletions AI.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@ class AI:

def pick(self, world):
#self.path_to_friend_check(world)
for path in world.map.paths:
print(path)
print("----------")

print("====================")
for path in world.get_me().paths_from_player:
print(path)
print("***")
world.choose_deck([1, 2, 3, 4])

def path_to_friend_check(self, world):
# path check:
Expand All @@ -29,3 +22,5 @@ def path_to_friend_check(self, world):

def turn(self, world):
print("turn")
for item in world.get_me().hand:
print(item)
4 changes: 4 additions & 0 deletions model.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ def __init__(self, type_id, max_hp, base_attack, base_range, target_type, is_fly
self.is_multiple = is_multiple
self.ap = ap

def __str__(self):
return "<BaseUnit | " \
"type id : {}".format(self.type_id)


class King:
def __init__(self, center, hp, attack, range, is_alive, player_id,
Expand Down

0 comments on commit 8622e3c

Please sign in to comment.