Four in a Row
Four in a Row is the classic two-player strategy game. Drop colored discs into a vertical grid and be the first to line up four of your color in a row - horizontally, vertically, or diagonally.
Key features
- Classic 7-column, 6-row vertical grid
- Play against AI or a friend on the same device
- Win detection for horizontal, vertical, and diagonal lines
- Clean visual design with smooth disc-drop animations
Guide
Four in a Row is a two-player strategy game played on a vertical grid of six rows and seven columns. Players take turns dropping colored discs into the columns. Each disc falls to the lowest available position in the chosen column. The first player to connect four of their discs in a horizontal, vertical, or diagonal line wins. If the grid fills completely without either player connecting four, the game is a draw. The drop mechanic is what separates Four in a Row from games like Tic Tac Toe. You choose a column but not a row. Your disc falls to the bottom of that column, stacking on top of any discs already there. This means you cannot place a disc in an arbitrary position on the grid. You must build upward from the bottom, and your placements are constrained by what is already in each column. This constraint creates the game's strategic depth. The center column is the most valuable position on the board. A disc in the center column participates in more potential four-in-a-row lines than a disc in any edge column. From the center, lines can extend in every direction. From a corner, options are severely limited. Strong players claim the center column early and fight to maintain control of it throughout the game. The first player should almost always open with a center column drop. Vertical threats are the simplest to create but also the simplest to block. Stacking three discs in a column creates an obvious vertical threat. Your opponent sees it and places a disc on top to block. Vertical threats are still useful as forcing moves that constrain your opponent's options, but they rarely win games directly against attentive players. Use vertical stacking to build position and force responses rather than expecting it to deliver a winning line. Horizontal threats develop across columns and are harder to block. A horizontal line of four requires discs at the same row level in four adjacent columns. Since discs stack from the bottom, creating a horizontal four requires that the row levels align. This means horizontal strategy is tightly connected to the parity of disc placement in adjacent columns. Understanding which columns need discs at which heights is the core of horizontal planning. Diagonal threats are the most powerful because they are the hardest to read. Diagonal lines cross both rows and columns, making them less visually obvious than horizontal or vertical lines. Many games are decided by a diagonal four that one player did not see coming. Practice scanning for diagonal patterns in both directions (rising left to right and falling left to right) during your opponent's turns, not just your own. The concept of a double threat is the primary winning mechanism in Four in a Row. A double threat exists when a single move creates two different ways to connect four, making it impossible for the opponent to block both. If you drop a disc that simultaneously threatens a horizontal four and a diagonal four, your opponent can only block one. You complete the other on your next turn. Nearly every won game of Four in a Row at the intermediate level and above is decided by a double threat. Building a double threat requires planning several moves ahead. You need to position your discs so that one additional disc creates two independent lines of four. This typically involves having two separate three-in-a-row patterns that share a common completion square, or two patterns whose completion squares are in the same column at adjacent heights. When you place a disc in that column, it completes one line. The disc needed for the second line is now possible because your placement created the necessary stack height. Odd and even row strategy is an advanced concept that governs who benefits from specific positions. Rows are numbered from the bottom: row 1 (bottom) through row 6 (top). Player 1 (who goes first) benefits from threats on odd rows. Player 2 benefits from threats on even rows. This is because of the turn structure. If both players play optimally in a column, Player 1 fills odd rows and Player 2 fills even rows in that column. Understanding this parity advantage helps you plan which rows to target for your winning threats. Blocking is as important as attacking. Every time you evaluate your move, consider both what it does for you and what it prevents for your opponent. A move that creates a minor threat for you while ignoring your opponent's imminent double threat is a losing move. Before executing your planned attack, check whether your opponent has any threats that need immediate attention. Defense must come first when threats are imminent. Column control is a strategic concept where you aim to dictate which columns the game is played in. By placing discs in specific columns, you force your opponent to respond in those columns, leaving other columns available for your future plans. If you can steer the game so that the critical battles happen in columns where you have a positional advantage, you gain a significant edge. Trap setups work by making your opponent think they are blocking you when they are actually walking into your plan. Place two discs in a row with gaps on both sides. Your opponent blocks one side. You now have a partial line that can be extended from the other side. This baiting technique works because many players focus on the most immediate threat without considering whether blocking it creates a worse situation. Endgame calculation becomes possible when the grid is mostly full. With only a few empty spaces remaining, you can calculate the exact result with perfect play from both sides. Count the remaining moves, determine which player fills which spaces based on turn order, and check whether any four-in-a-row lines complete. This deterministic calculation is one of the few areas in Four in a Row where you can be certain of the outcome rather than playing probabilistically. Common mistakes beginners make include focusing entirely on their own discs without tracking their opponent's patterns, playing reactively instead of proactively, neglecting the center column, and failing to scan for diagonal threats. Another frequent error is making a move that gives the opponent a critical square. Before dropping a disc, check what square it creates above it. If that square completes your opponent's line, find a different move. Playing as Player 1 (first move) gives a mathematical advantage. With optimal play, Player 1 can always force a win in standard 7x6 Four in a Row. This was proven through computational analysis. However, optimal play requires calculating many moves ahead, which is beyond most human players. In practice, both players have winning chances, and the advantage goes to whoever builds better positional setups and avoids critical mistakes. Playing as Player 2 requires a more defensive and reactive strategy. Since Player 1 has the initiative, Player 2 must balance responding to threats with building their own position. Focus on controlling even rows (where Player 2 has parity advantage), disrupting Player 1's center control, and waiting for Player 1 to overextend before launching a counterattack. Four in a Row in the browser is ideal for quick competitive sessions. A game takes two to five minutes, the rules require no explanation, and two players can compete on the same device by taking turns clicking columns. It works well for casual play between friends, family game time, or structured tournaments. The game's combination of simple rules and deep strategy ensures that it remains engaging across many games. The game also serves as an excellent introduction to strategic thinking. Concepts like controlling key positions, creating multiple threats, reading the opponent's intentions, and planning several moves ahead apply directly to chess, Go, and every other strategy game. Four in a Row teaches these concepts in a format that is accessible enough for young children but deep enough to engage adults. Play Four in a Row here in your browser against a friend. Drop your discs, build your threats, and learn to see the board not just as it is, but as it will be three moves from now.
Frequently asked questions
How do you play Four in a Row?
Players take turns dropping a colored disc into one of seven columns. The disc falls to the lowest available row. First player to connect four discs in a row (horizontally, vertically, or diagonally) wins.
Can I play Four in a Row against the computer?
Yes! Play against an AI opponent or challenge a friend in two-player mode on the same device.
