Two AI engines built from scratch. Deep Q-Network meets Alpha-Beta Pruning. Play against them or watch them fight each other.
Two engines, one board
A Convolutional Neural Network trained through 10,000 self-play episodes. It learned patterns from experience — not programmed rules. Sometimes brilliant, sometimes blind. Uses a safety layer to block obvious threats it might miss.
Hand-crafted minimax with alpha-beta pruning. Searches up to 6 moves ahead, evaluates center control, threats, and blocking. Deterministic — given the same board, it always finds the mathematically best move. No luck.
What you get
DQN vs Alpha-Beta, head to head. Random openings, full-strength mid-game. Every battle is different.
Watch the AI think. Column-by-column scores update in real-time as the board changes.
Every game saved automatically. Watch it back move by move. Works with GitHub and Google login.
One-click sign in with GitHub or Google. Replays sync across devices. Or play as guest.
Center control, 2-in-a-row, 3-in-a-row, blocking — all hand-tuned scoring. No black box.
Every line on GitHub. The DQN training, the minimax, the frontend. Built from scratch.
How it works
DQN or Alpha-Beta. Easy, Medium, or Hard.
Click a column. Your disc drops instantly. AI responds.
Replay saved automatically. Watch it back or try again.