Loading game
Preparing player
Loading game

Ready to play
Play Connect 4 by dropping discs into a 7×6 grid, blocking rival threats, building double attacks, and connecting four in any direction.
Connect 4 is a turn-based strategy game where two players drop colored discs into a vertical grid and race to create a line of four. A winning connection can run horizontally, vertically, or diagonally. Because every disc falls to the lowest open position in its column, you cannot place pieces anywhere you want; each move changes which squares become available on later turns.
The Code This Lab browser version uses the classic 7-column by 6-row board. Players alternate turns, choose a column, and drop one disc at a time while simultaneously building their own combinations and preventing the opponent from completing theirs.
The board contains 42 spaces arranged vertically. When you select a column, your disc falls until it reaches the lowest available square. If that column already contains pieces, the new disc stacks directly above them.
Your objective is to become the first player with four matching discs connected in a straight line. Hasbro's official rules confirm that the winning four can be horizontal, vertical, or diagonal.
This gravity rule is what gives Connect 4 its strategy. You may see an empty square that would complete your line, but you cannot use it until the spaces underneath have been filled. Sometimes the opponent must fill those supporting squares for you, while other times your own move accidentally gives them the exact position they need.
The Code This Lab implementation has been distributed with local and multiplayer modes. In local play, versions of the game allow competition against the computer or another person, while the multiplayer option provides direct player-versus-player matches.
The browser controls are intentionally simple. After you select a column, the game automatically places the disc into the lowest available position.
A horizontal win places four matching discs next to each other across the same row. Horizontal patterns often develop across the center because several neighboring columns can contribute to the same line.
A vertical connection requires four of your discs stacked in one column. Vertical attacks are easy to recognize, which also makes an obvious stack of three relatively easy for an opponent to block.
Diagonal lines rise or fall across neighboring columns. These are easier to overlook because each disc needs the correct support underneath it before the diagonal square becomes playable.
Always scan all three directions after every opponent move. Blocking visible horizontal threats while missing a developing diagonal is one of the easiest ways to lose.
Central positions participate in more possible four-disc combinations than spaces near the outside edges. This gives discs near the middle more opportunities to contribute to horizontal and diagonal winning lines.
Connect Four has also been mathematically solved: with perfect play on the classic 7×6 board, the first player can force a win when beginning in the center column.
You do not need to memorize a computer-perfect strategy to benefit from that fact. A practical beginner rule is simply to value the middle of the board. Center discs can support threats extending in several directions, whereas an edge piece has fewer possible lines available.
Before every move, check whether your opponent already has three connected discs with a playable fourth position.
If that winning square is available now, blocking it usually takes priority over developing a slower attack. Since your opponent receives another turn immediately after yours, ignoring a direct threat allows them to finish the line before your plan matters.
Be especially careful with diagonal threats. The winning position might currently be empty but unplayable because there is no disc underneath it. Your next move could supply that support and accidentally make the opponent's winning square available.
One of the strongest tactical ideas in Connect 4 is creating two possible wins at the same time. Your opponent can place only one disc during their turn, so if you have two separate playable squares that each complete four, they cannot block both.
This is often called a double threat or fork. Strong play therefore involves more than repeatedly building obvious groups of three. Sometimes placing a disc that appears less aggressive creates two future winning lines and is much harder to defend.
Every disc you place changes two positions: the square you occupy and, unless the column becomes full, the square directly above it.
Before choosing a column, examine that next square. If your move creates the support needed for the opponent to complete four immediately above your new disc, you may be giving away the game.
This gravity-based planning is especially important for diagonal combinations. The opponent may already have the rest of a diagonal prepared and simply be waiting for somebody to fill the square underneath their winning position.
When several columns look equally useful, prefer central positions. They contribute to more potential lines and give you more ways to branch into horizontal and diagonal attacks.
Scan their horizontal, vertical, and diagonal possibilities before developing your own plan. Blocking an immediate fourth disc is more important than extending a line that cannot win yet.
A simple three-disc vertical stack has only one obvious finishing square and is easy to defend. Build positions that can develop in more than one direction so your opponent has more threats to track.
Try to create a move that gives you two playable winning positions for the following turn. A double threat forces the opponent to choose one block while leaving the other available.
If an opponent needs a currently unsupported square to complete a diagonal or horizontal connection, avoid supplying the supporting disc unless you have calculated what happens next.
Edge positions have fewer possible winning combinations than central ones. They can still complete important lines, but dropping discs there without a specific plan may contribute less to your overall position.
The Code This Lab version is designed around player-versus-player competition and has been distributed with local and online multiplayer options. The local mode can include play against the computer or another person, while multiplayer lets players compete directly against each other.
The underlying rules remain the same across these matches: take turns dropping discs and become the first player to create four connected pieces.
If you enjoy Connect 4 because of its board positioning, pattern recognition, and move-ahead strategy, try these games available on YaloGames. The URLs below are included in the YaloGames sitemap.
For another board-focused strategy challenge, start with Trap the Cat. If you prefer planning several moves ahead on a constantly changing grid, 2048 is another good match.
Be the first player to connect four of your colored discs horizontally, vertically, or diagonally.
The classic game uses a grid with 7 columns and 6 rows, creating 42 available spaces.
Click the column you want to use. The disc falls to the lowest available space because pieces stack from the bottom upward.
Yes. Horizontal, vertical, and diagonal four-disc lines all count as wins.
The Connect 4 Multiplayer browser version described here was developed by Code This Lab S.r.l.
Connect 4 becomes much more strategic once you stop looking only for the next available group of four. Strong moves control valuable center positions, block immediate threats, avoid supporting enemy winning squares, and build several possible connections at once. Since every disc permanently changes which spaces can be played next, think about both the square you occupy and the one you make available above it before making your drop.
LIVE CHAT
No messages yet. Start the conversation.
Log in to join the chat.
Login






