Connect Four

Drop your discs, connect four in a row, and outsmart your opponent — play solo vs AI or challenge friends online.

Global Leaderboard

# Player W L Rating
Loading...

How to Play Connect Four

Connect Four is a classic two-player strategy game where the objective is to be the first to form a horizontal, vertical, or diagonal line of four of your colored discs. The game is played on a vertical 7-column, 6-row grid. Players take turns dropping one disc from the top of any column, and the disc falls to the lowest available position in that column due to gravity.

To play on DOLY Studio, simply select your game mode: Solo vs AI lets you practice against a computer opponent at three difficulty levels, while Online Multiplayer allows you to challenge friends in real time. In solo mode, you always play as the red disc (Player 1) and move first. Click or tap any column to drop your disc, then wait for the AI to respond. The game ends when one player connects four discs in a row or the board fills up completely, resulting in a draw.

For online multiplayer, sign in with your Google account, create a new game to get a 6-digit room code, then share the code with your friend. Once both players join, the game begins automatically with real-time synchronization. Each player has 30 seconds per turn — if the timer runs out, that player forfeits the match.

Connect Four Strategy Tips

Control the center column. The center column is the most strategically valuable position on the board. A disc placed in the center can contribute to horizontal, vertical, and both diagonal connections, giving you the maximum number of winning possibilities. Experienced players almost always start by claiming the center.

Plan multiple threats. The key to winning Connect Four is creating situations where you have two or more ways to win simultaneously. Your opponent can only block one threat per turn, so if you set up a "fork" — two potential four-in-a-row lines that share a common disc — you guarantee a win on your next move.

Think vertically. Many beginners focus only on horizontal connections, but vertical and diagonal threats are equally powerful. Stack discs strategically to build vertical pressure while keeping horizontal options open.

Watch your opponent. Always scan the board for your opponent's potential three-in-a-row sequences before making your move. Blocking an opponent's winning move is just as important as building your own connections. A missed block means an instant loss.

Use the odd-even strategy. In Connect Four theory, Player 1 (who moves first) wants to create threats on odd rows (1, 3, 5 from the bottom), while Player 2 should focus on even rows. This is because the first player will always place the "deciding" disc on an odd-numbered row when both players play optimally.

History of Connect Four

Connect Four was first sold under that name by Milton Bradley in 1974, though the underlying game concept dates back much further. The game was originally created by Howard Wexler with contributions from Ned Strongin, and it quickly became one of the best-selling two-player strategy games of the 20th century. The simple rules, combined with surprisingly deep strategic depth, made it appealing to both children and adults.

In 1988, Victor Allis, a computer scientist at Vrije Universiteit Amsterdam, solved Connect Four completely. He proved that with perfect play, the first player can always win by starting in the center column. His work demonstrated that Connect Four is a "solved game" — meaning the outcome is predetermined if both players make optimal moves. Despite being solved, the game remains enormously popular because the number of possible positions (over 4 trillion) makes it practically impossible for humans to play perfectly without computer assistance.

Frequently Asked Questions

Is Connect Four a solved game?

Yes. In 1988, Victor Allis proved that the first player can always force a win with perfect play by starting in the center column. However, this requires memorizing billions of positions, making it effectively impossible for humans. The game remains highly competitive and enjoyable at all skill levels.

Do I need an account to play?

No account is needed for Solo vs AI mode — you can start playing immediately. However, signing in with Google is required for Online Multiplayer and to have your wins recorded on the global leaderboard. Sign-in is free and takes just one click.

How does the AI difficulty work?

The AI uses the Minimax algorithm with alpha-beta pruning. Easy mode looks only 1-2 moves ahead and adds randomness, making it suitable for beginners. Medium mode searches 4 moves deep for a moderate challenge. Hard mode searches 6+ moves deep, playing near-optimally — it's extremely difficult to beat.

How does the ELO rating system work?

Every player starts with a rating of 1000. After each online match, ratings are adjusted based on the outcome and the difference between players' ratings. Beating a higher-rated opponent earns more points, while losing to a lower-rated one costs more. The system uses a K-factor of 32 for responsive rating changes.

What happens if my opponent disconnects during an online game?

If a player disconnects or closes their browser during an online match, the game is marked as abandoned. The remaining player is not penalized. If the disconnect happens during your opponent's turn and the 30-second timer expires, you win the match automatically.