Fleet Commander is like Space Invaders but you are the enemy instead of the player.
Find a file
2026-06-09 19:15:15 +02:00
.github/workflows Fix build not including torch and stable_baselines3, improve README 2025-11-16 21:32:16 +01:00
assets Add basic mechanics, like shooting and some basic textures 2025-11-14 20:32:06 +01:00
game Add 10 million timestep model, improve README, add diffculty/mode selector, score, make model training have instant graphs and also multiple envs for faster training, better plotting, improve RL model by including multiple players, better reard system, use EnemyFormation instead of single Enemy-es 2025-11-16 21:27:21 +01:00
menus Add 10 million timestep model, improve README, add diffculty/mode selector, score, make model training have instant graphs and also multiple envs for faster training, better plotting, improve RL model by including multiple players, better reard system, use EnemyFormation instead of single Enemy-es 2025-11-16 21:27:21 +01:00
utils update utils.py to latest template version 2025-12-13 15:52:10 +01:00
.gitignore add better model, improve rewards 2025-11-17 15:44:42 +01:00
.python-version Initial version from game template 2025-11-12 18:20:25 +01:00
CREDITS Initial version from game template 2025-11-12 18:20:25 +01:00
invader_agent.zip add better model, improve rewards 2025-11-17 15:44:42 +01:00
LICENSE Initial version from game template 2025-11-12 18:20:25 +01:00
pyproject.toml add RL training which doesnt work that wall yet, and start to make UI for model training 2025-11-15 15:56:56 +01:00
README.md Remove Youtube Video 2026-06-09 19:15:15 +02:00
requirements.txt update requirements.txt 2025-11-15 19:13:23 +01:00
run.py Add 10 million timestep model, improve README, add diffculty/mode selector, score, make model training have instant graphs and also multiple envs for faster training, better plotting, improve RL model by including multiple players, better reard system, use EnemyFormation instead of single Enemy-es 2025-11-16 21:27:21 +01:00
train.py Remove default model i will add back later, add back train.py, fix some rewarding 2025-11-16 22:34:29 +01:00
uv.lock add RL training which doesnt work that wall yet, and start to make UI for model training 2025-11-15 15:56:56 +01:00

Fleet Commander is like Space Invaders but you are the enemy instead of the player.

It uses AI (Reinforcement Learning) for the Player(s), and You, the Enemy has to defeat it.

I know the game is too easy and is too simple, but please understand that doing RL isn't the easiest thing ever. I also did this very late.

You can train it yourself, or use the default model(125 million timesteps, took 7 hours) which comes with the game.

Install steps:

It's important to install torch before stable_baselines3, otherwise it will use the GPU version, which i never tested with, and probably wouldn't be much faster because i depend on CPU for the simulation

For uv

  • uv sync
  • uv pip install torch --index-url https://download.pytorch.org/whl/cpu
  • uv pip install stable_baselines3
  • uv run run.py

For pip

  • python3 -m venv .venv
  • source .venv/bin/activate
  • pip3 install -r requirements.txt
  • pip3 install torch --index-url https://download.pytorch.org/whl/cpu
  • pip3 install stable_baselines3
  • python3 run.py

Disclaimer

AI assistance was used in this project, since i never did any RL work before. But every instance of AI code was heavily modified by me.