Connect Four
Connect Four
Four in a line wins. Columns 9 and 1 are neighbors, so a line can wrap around the cylinder.
Amber’s turn.
| Column 1 | Column 2 | Column 3 | Column 4 | Column 5 | Column 6 | Column 7 | Column 8 | Column 9 |
|---|
Study the moves
Rewind the board to find the moment the game turned.
Why this project exists
Make a familiar game worth rediscovering
Use the familiar move of dropping a disc as the basis for a lively, rewarding game. Variations, opponents and expressive feedback are ways to make it worth returning to.
Connect Four
Build toward four in a row.
Three in a Row
Try a shorter winning line and see how the same board feels.
About this game
Four in a Row starts with a simple decision: choose a column and let a piece fall. The Labs brief calls for a creative interpretation that builds on that readable core through game modes, animation and an optional computer opponent.
Original brief: YARRIVA Experimental Labs Master Specification.
Testing the cylinder size
In 448 computer games with paired opening conditions, the seven-column board saved 0.23 moves on average in three-ply self-play, but its median game was longer. We’re keeping nine columns as the reference. These runs measure particular computer policies, and human play may differ.
Four or five to win?
In 224 paired computer games on the nine-column, six-row cylinder, requiring five in a row added about 15–18 moves on average under the two tested policies. Four stays the default while we test how the longer alternative feels to play.
A Connect Four clue should check for a win before suggesting a block
After six drops, an opponent-only clue would omit an immediate win for the player to move in 624 of 7,092 threatened sequences.
The simulation covers ordered six-drop openings on the standard board. It does not measure whether a clue helps people play.
Cycle historyFive in a row takes more moves on the cylinder · Cycle 10 ·
Project RSS-
Five in a row takes more moves on the cylinder
Across 224 paired computer games at 9 by 6, five in a row added about 15–18 moves on average under the tested policies. Four remains the default.
-
A narrower cylinder did not shorten stronger computer games much
In a study of 448 computer games, the seven-column board saved only 0.23 moves on average in the three-ply self-play subset, and had a longer median. Nine columns stay the reference. These policy samples cannot establish optimal balance or human preference.
-
Spin the cylinder to drop a disc
Hold a spin button to accelerate, then release. The cylinder coasts in the same direction with a different braking rate each time. It aligns to the next eligible column in that direction and drops one disc. Direct placement remains available. Independent browser checks covered mouse, emulated touch, full columns, multiple frame intervals and turn locking until the disc lands.
-
See all four winning discs across the seam
The cylinder now shows the complete winning column sequence when it crosses from 9 to 1, and labels diagonal wins separately. Browser checks covered both diagonals, vertical wins, the computer and narrow mobile layouts. Four remains the winning length.
-
Five fits the cylinder, including across its seam
A private 9×6 prototype passed vertical and wraparound wins with five discs. The computer took and blocked a seam win in targeted browser checks. Four remains the public rule. The longer mode still needs a clearer win reveal and comparative play.
-
Find the last disc without giving up camera control
Find last move brings the last disc into view on demand, including during replay. Ordinary moves leave the cylinder angle under the player's control. Mouse and emulated touch checks passed.
-
Play four in a row around a nine-column cylinder
Drag to rotate or tap to drop a piece. Wins can cross the seam, and the computer can find and block them. Local two-player play and replay are available. Desktop and emulated mobile controls passed.
-
Make replay feel different from live play
Clearer focus and playback states support stepping through earlier turns and returning to the same board.
-
The board takes center stage
The game treatment removes the duplicate visual heading. Keyboard play and the accessible heading remain available.
-
Rewind a match and spot a winning move
Scrub backward through the moves, turn on optional one-move tactics, and return to the live board without changing it.
-
A Connect Four clue should check for a win before suggesting a block
After six drops, an opponent-only clue would omit an immediate win for the player to move in 624 of 7,092 threatened sequences. The simulation covers ordered six-drop openings on the standard board. It does not measure whether a clue helps people play.
-
One drop blocks most early Connect Four threats
In 16,807 five-drop sequences, 1,956 gave the first player an immediate winning threat. Exactly one drop blocked it in 1,740 sequences. The other 216 had two winning columns and no defense. The simulation covers immediate threats after five drops on a standard seven-column, six-row board. It does not measure how people play or whether a clue helps.
-
A one-use pop rescued none of 396 early Connect Four traps
Across 117,649 six-drop openings, 396 left the first player facing an immediate loss after every ordinary drop. Each offered a legal bottom-piece pop, and every pop left the opponent a winning drop. The test covers a seven-column, six-row board after six ordinary drops and checks only immediate replies. Later positions and player behavior remain untested.
-
Every four-drop opening offered a way to avoid the six-drop trap
In Three in a Row, Player 1 could prevent the trap in all 2,401 four-drop openings. When immediate wins on drop six also counted, 58 openings had no fifth drop that avoided both outcomes. The test covers the first six drops and the immediate threats they create on a seven-column, six-row board. It does not measure what players notice or what happens later.
-
A rule change alters the danger of the same board
The three-piece variant had no safe reply after 3.07% of the shared six-drop sequences under the random-move model. This describes the enumerated openings, not expert play.