KyloRen1/TowerDefenceRLagent

Training DQN for Tower Defence

★ 1Forks 0PythonGitHub ↗Compare

README

Tower Defence RL Agent

GIF 1


This project is an implementation of a classical Tower Defence game, which allows you to play it on your own, and it also includes a gym-like environment for training RL agents.

Current progress

  • PyGame Tower Defence
  • Tower Defence as gym environment
  • DQN - IN PROGRESS
  • inference script for DQN
  • Gameplay recording for Immitation learning

Getting started

  1. Clone repository
git clone https://github.com/KyloRen1/TowerDefenceRLagent
  1. Create python environment
python3 -m venv venv 
source venv/bin/activate
pip install -r requirements.txt
  1. Run game
python -m src.main_game --cfg configs/game_config.yml
  1. Run agent training
python -m src.main_agent --game-cfg configs/game_config.yml \
    --agent-cfg configs/agent_config.yml --world-speed 10

Contributors

KyloRen1

Issues