Skip to content

lixado/PyBoy-RL

Repository files navigation

Introduction

This is our project for Reinforcement Learning with PyBoy, where we trained agents to play GameBoy games, namely Super Mario Land and Kirby's Dream Land.

Report: report

Training time:

  • Super Mario Land: 26 hours on a 4-core CPU
  • Kirby's Dream Land: 20 hours on CUDA GPU
  • Kirby's Dream Land Bossfight: 12 hours on CUDA GPU

Requirements

Run with Python

To run from source, first install dependencies:

  • pip3 install -r requirements.txt

Then, run:

  • python3 main.py

Docker

Build command: docker build --tag pyboy-rl .

Once inside the image run python3 main.py to start the program. The docker container only supports headless mode, and the game emulator ui will not show up.

Based on

DDQN - https://arxiv.org/abs/1509.06461

PyTorch RL Super Mario Bros Example - https://pytorch.org/tutorials/intermediate/mario_rl_tutorial.html

About

Reinforcement learning using PyBoy for Kirby Dream Land and Super Mario Land

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published