How to Play Connect 4

Connect 4 is a two-player game played on a board with 7 columns and 6 rows. Take turns dropping your pieces and be the first to line up four of them!

Drop a Piece

Click or tap a column to drop your piece. Gravity pulls it down to the lowest empty spot in that column, so you can only stack pieces on top of the ones already there.

The piece falls to the lowest empty spot of the column

Connect Four to Win

Line up four of your pieces in a row, horizontally, vertically, or diagonally, before your opponent does.

Diagonals count too!

Block Your Opponent

Keep an eye on your opponent's lines. When they have three in a row with an open spot, drop a piece there to block them.

Red blocks yellow's three in a row on both sides

Draw

If the board fills up and nobody connects four, the game ends in a draw.

How the Score Is Calculated

Connect 4 has no points score and no leaderboard. Your stats track wins, time, and moves.

  • A game counts as won when you beat your opponent. Losses and draws count as games played.
  • Best time is your fastest win. Average time covers all your games.
  • Moves counts the pieces on the board from both sides. Total Moves counts every piece dropped, including the ones you undo, plus 1 for each undo and each redo. Against the CPU, an undo or redo usually steps over both your move and the CPU's, so it adds 2.

Stats are kept separately for each CPU difficulty and for games against Player 2.

New Game

Opponent

Please rotate your device or expand your window for the best experience

Connect 4 Guide: Rules, Strategy, Tips, and How to Play Online

Connect 4, also known as Four in a Row, Four Up, or Captain's Mistress, is a classic two-player strategy board game. Players take turns dropping colored pieces into a vertical board with 7 columns and 6 rows. Gravity pulls each piece down to the lowest free spot, and the first player to line up four pieces horizontally, vertically, or diagonally wins.

The rules fit in a sentence, but the game hides a surprising amount of depth. Every move changes which spots are reachable, which threats are real, and who will be forced to play where later. This guide explains how to play Connect 4 online, alone or with friends, the strategy that separates casual players from strong ones, a bit of history, and answers to common questions.

How to Play Connect 4

  • The board has 7 columns and 6 rows, for 42 spots in total.
  • Players alternate turns. On your turn, choose a column and drop one piece into it. The piece falls to the lowest empty spot of that column.
  • A column that is full cannot take more pieces.
  • Connect four of your pieces in a straight line, horizontally, vertically, or diagonally, to win the game.
  • If all 42 spots are filled and nobody connected four, the game ends in a draw.

Controls: click or tap a column to drop a piece. On a keyboard, use the arrow keys or A and D to move the piece above the board and press Down, S, Space, or Enter to drop it. You can also press the numbers 1 to 7 to drop directly on a column. Undo and redo let you review your mistakes and try a different idea.

Connect 4 Strategy: Think in Threats

A threat is an empty spot that would complete four in a row for one player. Strong Connect 4 play is mostly about creating threats you can use and denying the ones your opponent needs. Because pieces stack from the bottom, a threat cannot always be played right away: it only becomes playable once the spot below it is filled.

  • Take the center. The middle column is part of more possible lines of four than any other column, so pieces there are worth more. Opening in the center is the strongest first move.
  • Check for immediate wins and losses every turn. Before anything else, look for a move that wins right now, then for a move your opponent would win with next.
  • Do not play under your opponent's threat. If your opponent needs a spot, dropping a piece right below it lets them play there next turn.
  • Create double threats. Two threats at once, or two threats stacked on top of each other in the same column, cannot both be blocked.
  • Build in many directions. Pieces that take part in horizontal, vertical, and diagonal lines at the same time create threats more easily.
  • Count the remaining moves. Near the end, columns fill up and players are forced into spots they would rather avoid. Plan which spots each player will be forced to take.

Odd and Even Threats

Counting rows from the bottom, the first player usually benefits from threats on odd rows (1, 3, and 5) and the second player from threats on even rows (2, 4, and 6). When the board fills up, the order of play tends to hand the odd spots to the first player and the even spots to the second one. A threat on the right row can win the game long after it was created, simply because your opponent will eventually be forced to play below it.

Playing Against the CPU

The CPU comes in four difficulty levels. Easy often plays random moves and is a good place to learn the rules. Medium looks a few moves ahead and never misses an immediate win or block. Hard plans deeper and punishes loose moves, and Very Hard searches about a dozen moves ahead, so you will need real strategy to beat it. You can also choose Local Multiplayer (Player 2) to play with a friend on the same device, or play a friend online from another device, as explained below.

Play Connect 4 Online with a Friend

The classic plastic rack was made for two people at one table, but an invite link works just as well. Open the opponent menu, choose Online with friends, then Create room and copy the invite link. Your friend opens it in the browser on a phone or a computer, picks a name and an avatar, and joins as a guest: no account, no download, and no cost. Up to 20 people fit in one room, which also has a chat.

The host picks an opponent, and the two of you take turns dropping pieces into the same board while everyone else in the room watches. Both screens show the same colors, and each piece falls into place on every screen as soon as it is dropped. Who drops first alternates from match to match, which matters in a game where the first player has the edge from the center column. If you drop into the wrong column, you can ask to undo it, and your opponent decides whether to allow it. Once someone connects four or the board fills up, the host can start the next match or move the room on to another game.

A Short History of Connect 4

Connect 4 was first sold in 1974, but games about lining up pieces in a grid are much older. In 1988, James Dow Allen and Victor Allis independently solved the game: with perfect play, the first player can always win by starting in the center column. If the first player starts anywhere else, the second player can at least force a draw. Even so, perfect play requires deep calculation, which is why the game is still fun between people.

Variations of Connect 4

  • Pop Out: instead of dropping a piece, a player can remove one of their own pieces from the bottom row, shifting the column down.
  • Larger boards: some sets use 8x7, 9x7, or even bigger boards, which change the balance of the opening.
  • Five in a Row: extra columns on the sides and a goal of connecting five instead of four.

How the Score Is Calculated

Connect 4 has no points score and no leaderboard. Your stats track wins, time, and moves.

  • A game counts as won when you beat your opponent. Losses and draws count as games played.
  • Best time is your fastest win. Average time covers all your games.
  • Moves counts the pieces on the board from both sides. Total Moves counts every piece dropped, including the ones you undo, plus 1 for each undo and each redo. Against the CPU, an undo or redo usually steps over both your move and the CPU's, so it adds 2.

Stats are kept separately for each CPU difficulty and for games against Player 2.

Frequently Asked Questions

Who wins Connect 4 with perfect play?

The first player. Starting in the center column and playing perfectly guarantees a win, no matter how the second player responds.

Do diagonals count?

Yes. Four in a row counts horizontally, vertically, and in both diagonal directions.

Can Connect 4 end in a draw?

Yes. If the board fills up without anyone connecting four, the game is a draw. Draws are more common between experienced players who block every threat.

What is the best first move?

The center column. It gives your pieces the most chances to connect in every direction.

Can I play Connect 4 online with friends?

Yes. Choose Online with friends in the opponent menu, create a room, and send the invite link. Your friend joins in the browser as a guest, with no account or download, and the two of you play a versus match while the rest of the room watches.

How do I get better at Connect 4?

Play against stronger CPU levels, always check for wins and blocks before moving, and use undo to explore what would have happened with a different move.

Sound Effects Credits

The sound effects used on the game come from multiple parties. The credits and respective licenses are listed below:

  • "magic_game_win_success.wav" by MLaudio used under CC0 1.0 / Changed gain from original
  • "game over" by Leszek Szary used under CC0 1.0 / Changed gain from original
  • "Swoosh ยป swoosh-2.mp3" by lesaucisson used under CC0 1.0 / Changed gain from original

Disclaimer

This game is a property of Lofi and Games. All code and assets are protected and must not be redistributed or used without prior permission.