Skip to content

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

License

Notifications You must be signed in to change notification settings

zhm9484/mario_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Languages