diff --git a/jaxmarl/environments/hanabi/manual_game.py b/jaxmarl/environments/hanabi/manual_game.py index b2fdcc8b..1ac00a02 100644 --- a/jaxmarl/environments/hanabi/manual_game.py +++ b/jaxmarl/environments/hanabi/manual_game.py @@ -33,8 +33,9 @@ def act(self, env, obs, legal_moves, curr_player) -> int: try: print("---") action = int(input('Insert manual action: ')) + print("action legal:", legal_moves[curr_player][action]) print("---\n") - if action >= 0 and action <= 20 and legal_moves[action] == 1: + if action >= 0 and action <= 20 and legal_moves[curr_player][action] == 1: break else: print('Invalid action.')