Four in a row (Connect 4)

Free · No sign-up · Works on phones

Drop your discs, line up four before your opponent does. Play the computer, pass one phone around, or send a friend one link and play live from anywhere.

How to play

The board stands upright, so a disc dropped into a column falls to the lowest empty space. Players take turns, red first. The first to make an unbroken line of four of their colour, across, up and down, or diagonally, wins. If the board fills up first, the game is a draw.

  1. Pick who you are playing: the computer, someone next to you, or someone far away.
  2. Choose a board. The classic is 7 columns by 6 rows.
  3. Tap a column to drop a disc into it. On a computer you can also tab to a column and press Enter.

Four habits that win more games

  • Take the middle. The middle column is part of more possible lines than any other, which is why the first player wins with perfect play only by starting there.
  • Look one row up. Before you drop, check the space your disc creates above it. If your opponent can win by playing on top of you, pick another column.
  • Build two threats at once. A space that would complete your line is a threat. Your opponent can block one threat per turn, so two at once usually wins.
  • Mind odd and even rows. Late in the game the board fills up column by column, and who gets to play into a given row is decided by counting. As a rule of thumb, the first player wants threats on odd rows (counting from the bottom) and the second player on even rows.

Other games for two

For something quicker, try tic-tac-toe on any size board, which also plays live with one link. For a bigger group, a poker table or a game of Mafia takes everyone at the party.

Common questions

Can you beat the computer?

Easy and Medium, yes: Easy misses wins and blocks about a third of the time, and Medium only looks three moves ahead, so a trap set four or more moves deep will catch it. Hard searches about a dozen moves ahead in the middle of the game and to the very end once the board fills up, so it rarely blunders. It is not a perfect solver, though, and a player who controls the middle and builds threats on the right rows can still beat it.

Who wins with perfect play?

The first player. In 1988 James Dow Allen and Victor Allis each showed, independently, that on the standard 7×6 board the player who goes first can always force a win by starting in the middle column. Start anywhere else and perfect play from the second player gives a draw or a win to them. That is why the player who moves first swaps after every game here.

How do I play a friend online?

Choose “Two players, live” and send the invite link. When your friend opens it, the game starts on both screens and each disc drops on both straight away. If a phone loses signal or the screen locks, the game waits and carries on when they are back. After a game you can both tap Play again, and the other player goes first.

What are the bigger boards?

Alongside the classic 7 columns by 6 rows there are 8×7 and 9×7 boards, which are common variants. More columns mean more room to build threats side by side, so games last longer and the first player’s advantage is less clear-cut. You still need four in a row to win.

Is this the official Connect 4?

No. Connect 4 is a trademark of Hasbro, and this is an independent four-in-a-row game with the same well-known rules, not connected with or endorsed by them. The rules themselves are much older than the boxed game.

Is anything stored about me or my games?

No names or accounts. Games against the computer or on one device run entirely in your browser and disappear when you leave the page. A live game is kept on the game server while you play, as the moves, the score and a random code that lets each player rejoin, and is deleted a day after its last move. The site counts that a game started and how it ended, without names, to see which boards people enjoy.