Skip to content

Commit

Permalink
Ensure action is integer on mario joypad_space
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasAlegre committed Jan 4, 2024
1 parent df09993 commit 91ab390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mo_gymnasium/envs/mario/joypad_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def step(self, action):
- (dict) a dictionary of extra information
"""
action = int(action)
# take the step and record the output
return self.env.step(self._action_map[action])

Expand Down

0 comments on commit 91ab390

Please sign in to comment.