Block-Reign: A Player vs AI Grid Game That Learns From You
dev.to·18h·
Discuss: DEV
🎮QEMU TCG
Preview
Report Post

Most game AIs are fake smart.

Patterns, scripts, predictable behavior.

Block-Reign isn’t.

This is a lightweight Player vs AI grid battle game where the AI actually learns from every match you play — wins, losses, mistakes, all of it.

No GPU.

No fancy engines.

Just Python, reinforcement learning, and persistence.


🕹️ What Is Block-Reign?

Block-Reign is a 10×10 grid-based Player vs AI combat game built with:

  • Flask + HTML for the frontend
  • Python for the game server
  • Reinforcement Learning (Q-Learning) for live gameplay
  • DQN for advanced offline experimentation

You play in the browser.

The AI plays on the server.

After every match, it gets smarter.


🤖 The AI Philosophy

The core idea was simple:

What if the AI learned only from real g…

Similar Posts

Loading similar posts...