Skip to content

Python implementation for Mini Metro. Can be used for reinforcement learning.

License

Notifications You must be signed in to change notification settings

yanfengliu/python_mini_metro

Repository files navigation

Demo

python_mini_metro

This repo uses pygame to implement Mini Metro, a fun 2D strategic game where you try to optimize the max number of passengers your metro system can handle. Both human and program inputs are supported. One of the purposes of this implementation is to enable reinforcement learning agents to be trained on it.

Installation

pip install -r requirements.txt

How to run

To play the game manually

  • If you are running for the first time, install the requirements using pip install -r requirements.txt
  • Activate the virtual environment by running source myenv/bin/activate
  • Run python src/main.py

Testing

python -m unittest -v

About

Python implementation for Mini Metro. Can be used for reinforcement learning.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages