A bot plays gym-super-mario-bros using PyTorch model.
-
Python >= 3.6
-
Install requirements.
pip install -r requirements.txt
-
Install PyTorch.
-
OSX
pip install torch==1.2.0
-
Linux or Windows
pip install torch==1.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
-
-
Hack gym-super-mario-bros package.
-
OSX or Linux
cp hack/smb_env.py $(dirname $(python -c "import gym_super_mario_bros; print(gym_super_mario_bros.__file__)"))
-
Windows
python -c "import gym_super_mario_bros; import os; print(os.path.dirname(gym_super_mario_bros.__file__))"
Copy
hack/smb_env.py
to the folder which command above prints out.
-
python eval.py --render=1