DeveloperPuneet/Block-Reign: Block-Reign is a fast 10×10 PvE grid shooter where a Q-learning AI adapts to your playstyle every match—win, lose, it remembers. 🧠🕹️
github.com·22h·
Discuss: DEV
🎯Educational Games
Preview
Report Post

Block-Reign — Player vs AI Grid Battle 🕹️🤖

Overview

Block-Reign is a lightweight Player vs AI grid battle game where the AI learns from every match you play. The project includes a simple Q-learning AI (used by the game server) and a more advanced DQN trainer for experiments.


🔑 Key Features

  • 🎮 10×10 grid combat with movement and shooting
  • 🤖 Self-learning AI that adapts from actual matches you play
  • 💾 Persistent training (saved automatically under training/models)
  • 🧠 Advanced DQN trainer available in ai_trainer.py for experimentation
  • 🛠️ Easy reset — delete training/ to get a fresh (untrained) AI

Current AI Progress ✅

  • Win rate: 59%
  • Latest match log: 🏁 Match 78 complete - Winner: ai
  • Recent learning result:

Similar Posts

Loading similar posts...