1
0

fix movements

This commit is contained in:
andrea
2025-08-02 09:52:20 +02:00
parent 3cc6966d86
commit 2550f0b262
2 changed files with 15 additions and 10 deletions

View File

@@ -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'