Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.03 KB

README.md

File metadata and controls

49 lines (31 loc) · 1.03 KB

mario-bot

A bot plays gym-super-mario-bros using PyTorch model.

Installation

  • 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.

How To Run

python eval.py --render=1