How to Play Connect Four
Connect Four — also known as Four in a Row, Plot Four, or Four Up — is a classic two-player strategy game played on a vertical 7-column, 6-row grid. The goal is simple: be the first to connect four of your discs in a horizontal, vertical, or diagonal line while preventing your opponent from doing the same.
Each player takes turns dropping one coloured disc from the top of a selected column. Gravity carries the disc to the lowest available row in that column. The game ends when one player achieves four in a row or when the board is full with no winner — a draw.
Game Rules
On MIA Games, you always play as Red (🔴) and move first. Click or tap any of the seven columns above the board to drop your disc. In vs AI mode, the computer responds immediately with its move. In 2 Players mode, two people take turns on the same device. The game ends when:
- A player connects four discs horizontally (any row, any column range)
- A player connects four discs vertically (any column, any row range)
- A player connects four discs diagonally (both directions)
- The board fills completely with no four-in-a-row — this is a draw
Press Restart at any time to reset the board while keeping your score. Scores persist across sessions using your browser's localStorage — they will still be there when you return.
AI Difficulty Levels Explained
MIA Games offers three AI difficulty settings, each using a different decision-making strategy:
Easy mode makes the AI play randomly with only basic defensive moves. It will block an immediate threat but won't plan ahead. This is ideal for young players or beginners learning the game mechanics.
Medium mode gives the AI moderate intelligence. It evaluates the board using a heuristic scoring system that rewards centre control, offensive threats, and defensive positioning. It can spot winning opportunities one move ahead and will block your threats consistently.
Hard mode uses an advanced Minimax algorithm with Alpha-Beta pruning combined with a sophisticated heuristic evaluation function. The AI evaluates the board state, considers future moves, and selects the move that maximises its chance of winning while minimising yours. On Hard difficulty, the AI plays at a level that will challenge even experienced players.
Winning Strategy Tips
Against Easy and Medium AI, these strategies will significantly improve your win rate:
- Control the centre columns. The middle columns (3 and 4) offer the most opportunities for creating winning lines. Players who control the centre have a statistical advantage.
- Create multiple threats. Instead of focusing on a single line, try to create situations where you have two simultaneous winning opportunities. Your opponent can only block one, guaranteeing your win.
- Think two moves ahead. When placing a disc, consider not only your immediate move but also what your opponent might do next and how you can counter it.
- Watch the bottom rows. The bottom row is crucial — once a column is filled from the bottom, those discs are locked in place. Plan your strategy around building from the bottom up.
- Defend against diagonals. Diagonal wins are the hardest to spot. Always check for potential diagonal threats in both directions.
A Brief History of Connect Four
Connect Four was invented in 1973 by Howard Wexler, together with his business partner Ned Strongin, and first released in 1974 by the Milton Bradley Company (now owned by Hasbro). The game quickly became a commercial success and has remained popular for over five decades. Older four-in-a-row games existed long before it — some traditional versions were called "The Captain's Mistress" — but the modern game as we know it began with Wexler's 1973 design. In 1988, the game was mathematically solved by James D. Allen and Victor Allis, who proved that with perfect play on a 7×6 board, the first player can always force a win. This solved status makes Connect Four a fascinating subject for AI research and strategy analysis.
A Real Run on Our Own Connect Four
We played three full games on the live site, one on each difficulty, all as Red moving first. The game opened on Hard, so Easy and Medium were picked from the difficulty selector before those games started. The scores began at 0, and the status read "Your turn — drop a disc".
The Easy game was over in seven discs. Red played the centre columns first: column 4, then 3, then 5, then 6, building four in a row along the bottom. The AI answered in the same columns, 4 and then 3, and then column 2, but it never blocked the growing bottom row. The winning four sat on the bottom row, columns 3 to 6, and the four discs glowed. The screen said "You Win!" with the message "Amazing! You beat the AI!" The score showed 1, with 1 win and a streak of 1. Easy plays mostly at random, and this game showed it: it never once stood in the way of the bottom row.
The Medium game took nineteen discs and both sides had to block. Red blocked the AI's three in a row up column 6, and later a threat in column 3. The AI blocked Red's diagonal in column 5. The win came down a diagonal climbing from the bottom of the board to the upper left: bottom row column 5, then column 4, then column 3, then column 2 on the third row up. The screen said "You Win!" again, and the score moved to 2, with 2 wins and a streak of 2. Medium plays the way the page describes it: it spots a win and blocks a threat, but it does not plan far enough ahead to stop a diagonal built over several moves.
The Hard game ended in a loss after twenty discs. Red blocked two vertical threes, one in column 3 and one in column 5, and the AI blocked a bottom-row threat in column 7. The end came on the fourth row up: the AI dropped its last disc into column 2 and completed four across, columns 2 to 5, and the four discs glowed. The screen said "AI Wins!" with the message "Better luck next time! Keep practicing." The win streak went back to 0. After three games the totals stood at 2 wins, 1 loss and 0 draws.
The small details all behaved as the page describes. The AI answered at once after every move, with no waiting. The winning discs were highlighted in the games that had a winner. The game-over screen appeared after a short pause, not instantly. The scores were kept across all three games, and Restart starts a fresh board while keeping the score.
Three lessons stood out. First, start in the centre. Columns 3, 4 and 5 sit on the most winning lines, and every game in this run was built from there. Second, build along the bottom row, where a four is hardest for the other side to break up. Third, block at once when the other side has three in a row, and watch the rows as well as the columns. The Hard loss came from a horizontal four on the fourth row, the kind of line that is easy to miss while watching the vertical columns.