python_mini_metro
python_mini_metro copied to clipboard
Python implementation for Mini Metro. Can be used for reinforcement learning.
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