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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help