Skip to content

Commit

Permalink
Update cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kautenja authored Jun 2, 2019
1 parent bd06f4b commit 7422924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gym_super_mario_bros/_app/cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Super Mario Bros for OpenAI Gym."""
import argparse
import gym
from nes_py.wrappers import BinarySpaceToDiscreteSpaceEnv
from nes_py.wrappers import JoypadSpace
from nes_py.app.play_human import play_human
from nes_py.app.play_random import play_random
from ..actions import RIGHT_ONLY, SIMPLE_MOVEMENT, COMPLEX_MOVEMENT
Expand Down Expand Up @@ -60,7 +60,7 @@ def main():
# unwrap the actions list by key
actions = _ACTION_SPACES[args.actionspace]
# wrap the environment with the new action space
env = BinarySpaceToDiscreteSpaceEnv(env, actions)
env = JoypadSpace(env, actions)
# play the environment with the given mode
if args.mode == 'human':
play_human(env)
Expand Down

0 comments on commit 7422924

Please sign in to comment.