How to play Four in a Row
- The board has 7 columns and 6 rows, standing upright. You play red and always move first; the computer plays gold discs with a small diamond.
- Click or tap a column to drop a disc. It falls to the lowest empty space.
- The computer replies straight away with a disc of its own.
- The first side to line up four discs horizontally, vertically or diagonally wins. The winning four are ringed.
- If all 42 spaces fill with no line of four, the game is a draw.
- A full column cannot take another disc.
- Undo takes back your disc and the computer’s reply together.
Four in a Row strategy: how to win more games
The game looks simple, but it rewards planning several moves ahead. These ideas cover most of what separates a beginner from a strong player.
Play the centre
The middle column is part of more possible lines of four than any other, and the columns beside it come next. Start in the centre and keep a presence there. The computer weighs the centre the same way, which is why it rarely opens on an edge.
Make double threats
A single threat of three in a row is easy to block. Two threats at once cannot both be blocked. The classic case is three discs in a row on the bottom with both ends open: whichever end your opponent covers, you play the other. Build positions where one move creates two threats.
Watch the square under a threat
A threat in the air is only useful when the square below it gets filled. If your opponent would have to play right under your winning square, they cannot move in that column without handing you the game. Count which columns are poisoned for each side; late in the game, running out of safe columns is how most games are lost.
Odd and even rows
Because you move first, you tend to get the odd rows (1, 3, 5 from the bottom) when columns fill up at the end, and the second player the even rows. A threat on an odd row is usually worth more to the first player, and one on an even row to the second.
Always check before you drop
Before each move, ask two questions: can I win right now, and can my opponent win next move? Then check that your disc does not create a space your opponent can use on top of it.
Computer strength: Easy, Medium and Hard
Choose the strength under Settings; it applies from the next game. The computer uses an alpha-beta search and scores every possible line of four on the board, with a preference for the centre and for quicker wins.
- Easy looks 1 move ahead and chooses with some randomness among moves close to its best. It takes a win when one is on the board and blocks a single open three, but it cannot stop a double threat.
- Medium, the default, looks 3 moves ahead (plies).
- Hard looks 7 moves ahead and answers in about 30 milliseconds on a laptop, around a tenth of a second at most.
Can the first player always win?
Yes, on the standard 7×6 board. In 1988 the game was solved independently by two researchers, who showed that the first player can force a win with perfect play by starting in the centre column. In practice perfect play is far beyond what people can calculate, and even the Hard computer here looks only 7 moves ahead, so games stay open. You always move first on this page.
A short history of four in a row
Games of lining up pieces are very old, from tic-tac-toe to gomoku. The version with an upright frame, where gravity decides where each disc lands, became a popular family game in the 1970s and has been played at home ever since under many names. Its small board made it a favourite subject for early computer game research, which led to its solution in 1988.
Stats, hints and undo
Your games played and games won are kept in your browser. A draw counts as played but not won. Four in a Row is turn-based, so there is no timer and no daily game; the header shows whose turn it is and the result when the game ends.
Undo and redo are unlimited within a game. The hint runs a five-ply search for you, highlights where your disc would land and can be applied with one click. The first two hints in each game are free; when ads are switched on later, further hints offer a short ad or a 30-second wait. Each game has a puzzle code such as A7K3Q, and ?p= in the address replays it; with the same code and moves, the computer plays the same way every time.
Plays anywhere, no app, no account
Tap anywhere in a column on a phone, or use the arrow keys and Enter, or press 1 to 7 to drop straight into a column. Tidy Puzzles runs entirely in your browser: there is no app to install, no account to create and no interstitial before you can play. After the first visit the game also works offline, because each puzzle is generated on your device from a seed. Every board can be played with the keyboard alone, on a phone or a desktop, and your stats and unfinished puzzles stay in this browser rather than on a server.