Arcade 02 · Negamax + alpha-beta

Connect Four

Pick a column to drop your disc into. Four in a row — any direction — wins.

How the solver works

Connect Four is a solved game — the first player wins by opening in the centre. This engine searches by iterative deepening with alpha-beta pruning, a Zobrist transposition table and killer-move ordering. When it says “forced win in 5”, that is proven, not guessed.

Your move

Click a column, or press 1–7 · U undo · R new game Tap a column to drop a disc

The studio

Back to the room it all began in.

Every page here is on the computer in that room.

Enter the studio