Fix broken game test

This commit is contained in:
Yohann D'ANELLO
2020-11-10 22:44:53 +01:00
parent d26b66f337
commit 12ee436f4d
4 changed files with 23 additions and 3 deletions

View File

@ -10,7 +10,7 @@ class Monster(FightingEntity):
And if a player is close to the monster, the monster run on the player.
"""
# TODO If a player is close, move to the player
while True:
for _ in range(100):
if choice([self.move_up, self.move_down,
self.move_left, self.move_right])():
break