fix movements
This commit is contained in:
1
debug.py
1
debug.py
@@ -38,6 +38,7 @@ def _random_action(Arena, Player_one):
|
||||
elif 2 in avail_actions:
|
||||
Map= Arena.get_map()
|
||||
available_movements= Map.get_player_available_directions(Player_one)
|
||||
print(f'{Player_one.get_name()}:{Player_one.get_coordinates()}, avail_movements: {available_movements}')
|
||||
if not available_movements:
|
||||
# XXX probably should skip this action and look for another action
|
||||
return f'{Player_one.get_name()} Pensa a Guarino tutto il giorno'
|
||||
|
||||
Reference in New Issue
Block a user