ADVERSARIAL SEARCH

Connect 4 AI

Minimax with alpha-beta pruning and centre-first move ordering

Adversarial Search

Connect 4 — Minimax AI

You (Red) AI (Yellow) Alpha-Beta Pruning  — play against the AI and watch it think

AI Search Depth
Click a column to drop your piece
Game Stats
Nodes Searched
0
AI Think Time
0ms
Move #
0
Pruned Branches
0
Board Evaluation
0
AI favoured Human favoured
Move Log
How It Works
The AI uses Minimax with Alpha-Beta pruning to search the game tree. It evaluates every possible future board position up to the chosen depth, scoring windows of 4 cells. Centre-first move ordering improves pruning efficiency.