Portfolio demo
Connect-4
Local two-player or versus a minimax AI — with undo/redo.
2-player localMinimax AIUndo / Redo
Mode
Red to move
Session
Red 0 · Yellow 0 · Draws 0
How to play
- Pick a column to drop your disc — it falls to the lowest free slot.
- Connect four of your discs horizontally, vertically, or diagonally to win.
- Against the computer you can play First (red, you open) or Second (yellow).
- Strong mode is genuinely strong, not perfect: full Connect-4 is solved, but this search is depth-limited.