← Home

Four in a Row best move

Place the discs in the order of the game: under each column you'll see what it gives with perfect play on both sides.

0 / 0

Wins in N · Draw · Loses in N: N counts the winner's discs from now on, including the 4th in line. ★ = best move.

How the analysis works

Four in a Row is a solved game: in 1988, James D. Allen and Victor Allis each showed, independently, that the first player wins for sure by starting in the center and then playing without a mistake. This tool does the same work on your position: it explores every possible sequence of moves to the end, with no heuristics, and works out the exact value of each column.

The calculation runs in your browser; nothing is sent. It's almost instant once about ten discs are on the board. In an opening position, there are too many possible sequences for an exact calculation in a browser: the tool says so instead of guessing.

Analyze one of your games

At the end of a game against the computer or between two players, the "Analyze the game" link opens this page with every move played. The tool goes back through the game and marks each move that changed the outcome: a forced win that slips away, a draw that turns into a loss. Click a move in the list to go back to that position and see what you should have played.

And to practice every day on a winning position, there's the daily challenge.