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

JingXunLin/AI_final_project

 
 

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

分工

  • simulator : 蕭登鴻
  • 複現 + 改進 (SA + other algo
  • GA based : 蕭登鴻
  • RL based : 林敬珣

TODO

  • 建立api
  • 複現 + 改進 (SA + other algo
  • 測試 GA based methods
  • 測試 RL based methods

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%