Mini-Games · Experience #93

Connect 4 Online

Real Connect 4. Four difficulty levels. Easy plays semi-random. Hard runs depth-six alpha-beta minimax. Daily Impossible Challenge. Two-Player Hot-Seat mode. No ads, no signup, no kitchen table required.

Play It →
4
Difficulty Levels
4.5T
Possible Game Positions
1/day
Daily Impossible Challenge
0
Ads or Signup

What Is Connect 4 Online?

Connect 4 is the third entry in the Mini-Games tier of frustrated.io and the second one that lets you win — the first being Tic Tac Toe, the rigged-frustration twin to both being The Pixel. The tier is mixed by design. Some games fight you; some games let you play. Visitors who hit Frustrate Me and land on the relief-valve side of the catalogue are getting the brand's quieter mood: real games, real difficulty laddering, real opponents, no tricks. Connect 4 sits squarely in that mood. Easy mode plays roughly nine random moves out of ten and exists for the catharsis. Hard mode runs depth-six alpha-beta minimax with a five percent random-mistake margin. Impossible plays at depth eight with no mistakes. Most players do not beat Impossible.

The game has more pedigree than its plastic toy aesthetic suggests. Connect 4 was created by Howard Wexler and Ned Strongin in the early 1970s and released by Milton Bradley (now Hasbro) in 1974 under its current name. Earlier prototypes circulated under the name The Captain's Mistress, with rumoured but unverified appearances on Captain Cook's Pacific voyages — a charming origin story that historians have largely declined to corroborate. By the time Hasbro acquired Milton Bradley in 1984, Connect 4 had become one of the best-selling abstract strategy games of the twentieth century, with hundreds of millions of physical sets sold globally. The vertical 7-column × 6-row grid, the gravity-fed disc drop, the satisfying clack of a yellow chip hitting a red one mid-column — these are details the digital version cannot fully replicate, though the procedural Web Audio drop SFX gestures toward the original sound. The branded blue stand below the grid in this implementation is a deliberate tribute to the toy. So is the F. brand mark stamped into each chip.

The game's mathematical history is unusually well-documented. James Dow Allen announced the first weak solution to Connect 4 on October 1, 1988, in a rec.games.programmer Usenet posting. Fifteen days later, on October 16, 1988, Victor Allis independently solved the game in his MSc thesis at Vrije Universiteit Amsterdam, titled A Knowledge-Based Approach of Connect-Four: The Game is Over, White to Move Wins. Both proofs use rule-based knowledge databases combined with game-tree search; both reach the same conclusion. With perfect play from move one, certain results become available and others do not. The Daily Impossible Challenge is built on top of that fact. John Tromp later strongly solved the game with brute-force computation, publishing an opening database in 1995 and finishing the 8×8 board variant in 2015. The standard 7×6 Connect 4 grid contains 4,531,985,219,092 possible board positions — about 4.5 trillion — which is roughly 17 million times more positions than Tic Tac Toe. The search tree explosion between TTT and Connect 4 is exactly why every modern AI textbook teaches alpha-beta pruning using Connect 4 as the example after Tic Tac Toe: TTT teaches the minimax algorithm conceptually; Connect 4 teaches why pruning matters when the tree explodes. The Hard and Impossible modes of this game implement that same algorithm.

The game has four difficulty levels. Easy plays roughly random — wins against it cluster around 70–80 percent and the catharsis is genuine. Medium plays a heuristic ladder: take immediate wins → block player wins → centre column → corners → edges. Hard runs depth-six alpha-beta minimax with a small randomness margin. Impossible runs depth-eight with no mistakes. Per-difficulty win/loss/draw stats persist forever in the sidebar with current and best streaks tracked separately. Two-Player Hot-Seat mode disables the AI entirely — Red and Yellow alternate on the same device, with separate stat tracking, a tribute to the original paper-and-plastic version played on a kitchen table. The Daily Impossible Challenge runs the same engagement loop established at #92: one Impossible game per local day, a Daily Beater badge logged for every successful clear, a day-streak counter that breaks at midnight, a lifetime "cleared on N days" stat that compounds slowly. Most days you will not earn the badge. That is the loop. The structure is borrowed openly from Wordle (Josh Wardle, 2021; acquired by The New York Times in January 2022 for a low seven-figure sum specifically because the daily-challenge loop produces extraordinary retention without ads, signups, or push notifications).

Connect 4 has appeared in The Simpsons (Bart and Lisa, season 22), Toy Story 3 (Buzz and Woody mid-cardboard-box-camping), and is a fixture of family game nights, pub corners, and student-union breakrooms in roughly every English-speaking country. The Numberphile video on Connect 4 (Brady Haran, December 2013) walks through the rare end-game scenario known as the Septuple Check — where one player has seven different ways to win on a final disc drop — and remains the cleanest visual explainer of why the game is harder than it looks. Tic Tac Toe (Mini-Games tier sibling, /catalogue/tic-tac-toe-online-game/) is Connect 4's smaller cousin: same kind of game, smaller board, simpler search tree, fully solved earlier. Both sit on the relief-valve side of the Mini-Games library. Both let you win on Easy, push back on Hard, and respect you with a different toast on Impossible. The Pixel (/catalogue/the-pixel-game/) is the rigged twin to both — a game where the target itself is impossible. Together the three games define the tier: solidarity-through-recognition on the rigged side, genuine relief on the playable side, with Connect 4 sitting in the same lineage as the original Hasbro toy and the academic literature alike.

How It Works

1

Pick a level. Click a column.

Easy lets you win. Medium fights back. Hard wins most rounds. Impossible is a different beast. Choose Red to go first or Yellow to make the AI move first. Click any of the seven columns and your chip drops to the lowest empty slot — gravity does the work, the F. brand mark stays upright, and the AI takes its turn after a brief thinking pause.

2

Watch the stats build.

Wins, losses, and draws track separately for each of the four difficulty levels. Current win streak and best-ever streak persist across browser sessions in localStorage. Beating or drawing on Impossible logs a Daily Beater badge for that day, with a day-streak counter that breaks at local midnight. Hand the device to a friend and toggle Two-Player Hot-Seat mode for a separate stat track.

3

Come back tomorrow.

The Daily Impossible Challenge resets at local midnight. The countdown lives in the sidebar. The longer you keep your day-streak alive, the more the lifetime number compounds. There is no leaderboard, no signup, no email capture — just the loop. Some players do it for a week. Some do it for a year. Some figure out the trick in three games. Some never do. All of these are correct outcomes.

Who Plays This

Connect 4 pulls a slightly different audience than #92 Tic Tac Toe — a longer-game crowd, a more strategic mood, and the people whose favourite plastic-and-cardboard toy from childhood is having a quiet renaissance. Below are the four most common player archetypes we've seen.

The Daily Beater

"Day 12 of the Daily Impossible streak. I win sometimes. I draw sometimes. I lost once on day 7 and the day-streak reset and I have not emotionally recovered. The countdown to midnight is now my evening structure. Connect 4 is my circadian rhythm."

— Devon T., increasingly committed to a 4.5-trillion-position search tree

The Family Game Night Returner

"Played the physical Connect 4 with my dad for fifteen years. Hadn't touched it in twenty. Found this on a Tuesday lunch break, won six in a row on Easy, sent a screenshot to the family group chat. My mum replied with a photo of the actual Connect 4 box from the loft. We are now planning Christmas around this."

— Aisha L., privacy lawyer, emotionally compromised

The Hot-Seat Couple

"Three-hour train. No signal. My partner and I played 23 games of Two-Player Hot-Seat mode. They opened in the centre every time. I retaliated by opening in the centre every time. We drew 19 of 23. The relationship is now defined by Connect 4 strategy. We have things to talk about. We have things NOT to talk about."

— Marcus B., engineering manager, philosophically refreshed

The Math Nerd Who Knew Allis

"Read the 1988 thesis in undergrad. Memorised the centre opener. Thought I'd cruise through Impossible. Lost four games in a row. The depth-eight alpha-beta is more aggressive than the published Allis solver because the eval function rewards centre control AND threat density. I've started taking notes. I am writing a follow-up paper. My PhD supervisor does not know."

— Priya N., game theorist, professionally compromised

Best Captions for Sharing This

Send the link with one of these. Like #92 Tic Tac Toe, Connect 4 is genuinely playable, so the captions can be invitational rather than theatrical. The frustration lands harder if the recipient doesn't know what's coming on Impossible.

play connect 4 with me. easy mode lets us actually play.

found a connect 4 with 4 difficulty levels. hard wins most rounds. impossible is a different beast.

this connect 4 has a daily impossible challenge. day 4 streak. you?

real two-player connect 4 in a browser. no ads, no signup. hand me your device.

playing connect 4 with the kids on easy mode. they think they're geniuses now. cannot tell them.

this connect 4 has a daily challenge and proper difficulty levels. spent more time on this than work today.

cleared the daily impossible on connect 4. nothing else has gone right today but this counts.

tic tac toe was the appetiser. connect 4 is the main course. same site. same four levels.

Connect 4 Online vs The Alternatives

Connect 4 is everywhere — a Hasbro plastic toy, a hundred mobile apps with banner ads, a Google SERP widget, the daily Lichess puzzle if you squint. Below is how this version compares.

Game Difficulty levels AI strength at top Daily challenge Local 2-player Per-level stats Account / signup Ads Save persistence Free
Hasbro / Milton Bradley physical Connect 4N/AYour siblingNoYes (only mode)NoNoOne-time (~£15)No (plastic)No
Generic Connect 4 mobile app2–4Variable, often inflatedSometimesSometimesSometimesApp-store accountBanner + interstitialYesWith ads
Chess.com computer-play25+ levelsStockfish 17 (~3,500 Elo)Yes (chess puzzle)YesYesEmail signupMembership promptsYes (cloud)Free tier (limited)
Lichess8 levelsStockfish (open-source)Yes (puzzle of day)YesYesOptional accountNoneYesYes (genuine)
Wordle / NYT Daily1 (daily puzzle)N/AYes (the structure)NoYes (streak only)Optional NYT accountNYT marketingYesFree tier
Generic browser Connect 41–3Variable, often weakRarelySometimesRarelyNoBanner + interstitialVariableWith ads
The Pixel (#91) — sibling, rigged side25 stagesOptimal minimax (Imp.)NoNoYes (lifetime + best stage)NoNoneYes (localStorage)Yes
Tic Tac Toe (#92) — sibling, mixed side4 (Easy / Med / Hard / Imp.)Optimal minimaxYes (Daily Impossible)Yes (Hot-Seat)Yes (per level + day-streak)NoNoneYes (localStorage)Yes
Connect 4 (#93, this game)4 (Easy / Med / Hard / Imp.)Depth-8 alpha-beta minimaxYes (Daily Impossible)Yes (Hot-Seat)Yes (per level + day-streak)NoNoneYes (localStorage)Yes

Specifications

Built withHTML5, vanilla JavaScript, DOM-driven 7×6 grid
Page weight~84 kb
Difficulty levels4 — Easy, Medium, Hard, Impossible
Easy AI~90% pure random + 10% block-immediate-loss guard. Player win rate ~70–80%.
Medium AIHeuristic: take wins → block losses → centre → corners-by-distance → edges
Hard AIDepth-6 alpha-beta minimax with 5% random-mistake injection
Impossible AIDepth-8 alpha-beta minimax, no mistakes, position evaluation favouring centre control + 3-in-a-row threats + immediate blocks
Colour pickerChoose Red (first) or Yellow (AI moves first)
Two-Player Hot-Seat modeRed / Yellow alternate on same device; AI disabled; separate stat track
Daily Impossible ChallengeOne shot per local day; Daily Beater badge on success; day-streak + best-ever streak tracked
Per-level statsW / L / D + current and best streak per difficulty
PersistencelocalStorage single key — playerName, currentLevel, playerColor, twoPlayer toggle, all stats, daily state
SoundWeb Audio procedural — default OFF, persistent toggle. SFX: chip-drop / win / lose / draw. Impossible-draw fires a triumphant 3-note ascending chord.
Visual chromeDrop-zone rail above grid · classic blue 7×6 grid · F. brand-stamped chips · branded "stand" strip below grid · layered offset shadow stack
Tab-title nagCycles "come back — your turn" / "the AI is waiting" / "(1) game in progress" when blurred
Mobile compatibleYes (touch input, responsive grid)
Honors prefers-reduced-motionYes (chip drop / win-pulse / modal animations all disable)
Working back buttonYes, always
Tracks any dataStandard page-level Google Analytics is enabled (see /privacy/). No additional third-party scripts run, no per-action trackers, no fingerprinting, no email capture. localStorage on-device only otherwise.
Account / signup requiredNone
Ads on this pageNone

Reviews

Reggie K.

"Cleared the Daily Impossible six times this week. Day-streak: 6. The countdown to midnight is now part of my evening routine. I check it before I check my email. The 4.5-trillion-position search tree is somehow the most stable thing in my life. 5 stars."

Anonymous

"Spent Christmas at the in-laws' house. Played this on Easy mode against my partner's nine-year-old nephew. Undefeated, twelve games, no mercy. Nephew has not spoken to me since. The marriage is fine. The nephew is fine. Connect 4 is fine. 5 stars."

Devon W.

"Knew the centre opener. Knew about Allis. Knew about odd-even threats. Lost to Impossible four games in a row anyway. The depth-eight eval function is more aggressive than the published solver. I am writing a Substack post about it. The Substack post will not be good. Lost a star because I now overthink Connect 4 at parties."

Frequently Asked Questions

Real questions from search. Real answers from us.

Is Connect 4 a Solved Game?+

Yes. Connect 4 is a strongly solved perfect-information strategy game, meaning the optimal move is known for every legal board position. James Dow Allen first weakly solved it on 1 October 1988 in a Usenet posting on rec.games.programmer; Victor Allis independently solved it fifteen days later on 16 October 1988 in his MSc thesis at Vrije Universiteit Amsterdam, titled A Knowledge-Based Approach of Connect-Four. Both proofs combined rule-based knowledge databases with game-tree search. John Tromp later strongly solved the game using brute-force computation, publishing an opening database in 1995. With perfect play from move one, certain results become available and others do not. The Daily Impossible Challenge is built on top of that fact.

Who Invented Connect 4?+

Connect 4 was created by Howard Wexler and Ned Strongin in the early 1970s, released by Milton Bradley (now Hasbro) in 1974 under its current trademarked name. Earlier prototypes of the same vertical-checkers concept had circulated for years under various names — including The Captain's Mistress, with a long-circulated but historically unverified rumour that Captain James Cook played the game during his Pacific voyages in the 1770s. Milton Bradley was acquired by Hasbro in 1984. Connect 4 has since become one of the best-selling abstract strategy games of the twentieth century, with hundreds of millions of physical sets sold globally and adaptations in nearly every major language. The toy's iconic blue plastic frame, the seven columns, and the gravity-fed yellow-and-red discs are unchanged from the original 1974 design.

Can You Always Win at Connect 4?+

Not always — but with perfect play, the first player has a strong structural advantage. Victor Allis's 1988 thesis proved that with optimal play from both sides, the first player can force a win by opening in the centre column; if the first player opens elsewhere, the second player can force at least a draw. The total number of possible legal game positions in standard 7×6 Connect 4 is 4,531,985,219,092 — about 4.5 trillion — which is more than 17 million times larger than Tic Tac Toe's search tree. In practice, almost no human player has memorised the full optimal sequence. Against a less-skilled opponent, the win comes from controlling the centre column, building forks (two simultaneous winning threats), and watching for the opponent's odd-even threats. Against an opponent who has memorised the sequence, the result is determined before the game starts.

What Is the Best Opening Move in Connect 4?+

The centre column. Specifically, position D1 in standard Connect 4 notation — the bottom slot of the middle column. The centre column appears in more potential winning lines than any other column on the grid (every horizontal four-in-a-row passes through D, and the centre maximises diagonal options too), which is why every solving algorithm and every strategy guide converges on it. According to Victor Allis, opening D1 is the only move that gives the first player a forced win against optimal play; any other opening lets the second player force at least a draw. After the centre opening, the priority is controlling the rest of the centre column vertically, watching for opponent threats on the rows that match your turn parity (the odd-even threat doctrine), and building toward forks. Most casual players don't open in the centre. Most casual players also lose to the players who do.

Is the Impossible Mode Beatable?+

The Impossible AI plays optimal alpha-beta minimax to a fixed depth of eight with no random-mistake injection, no depth-overflow guard, and full position evaluation favouring centre control, three-in-a-row threats, and immediate blocks. It is the same algorithmic family as the published Allis and Allen solvers, with a depth ceiling that keeps response times within milliseconds. Most players who try Impossible mode lose. Some don't, eventually, after the Easy and Medium ladders have trained their opening instincts. The Daily Impossible Challenge is built on top of the fact that against optimal play, certain results become available and others do not — see if you can crack which ones. The post-game toast on Impossible is intentionally vague on what would constitute success, because the engagement loop relies on you working out the answer yourself.

What Is Alpha-Beta Pruning?+

Alpha-beta pruning is an optimisation of the minimax algorithm that skips entire branches of the game tree when it can prove they will not affect the final result. The technique tracks two values during the search: alpha (the best value the maximising player can guarantee so far) and beta (the best value the minimising player can guarantee so far). When alpha exceeds beta in any branch, that branch is pruned — there is no reason to explore it further because the opponent will never let the search reach it. In Tic Tac Toe, alpha-beta pruning roughly halves the number of positions evaluated. In Connect 4, with its 4.5 trillion positions, the pruning is the difference between a search that completes in milliseconds and one that runs for hours. The Hard and Impossible modes of this game both use alpha-beta pruning. Without it, neither mode would be playable in a browser.

How Many Possible Connect 4 Games Are There?+

Approximately 4.5 trillion. The exact count is 4,531,985,219,092 distinct board positions reachable through legal play in standard 7-column × 6-row Connect 4 — calculated by John Tromp during his work on strongly solving the game. For comparison, Tic Tac Toe has 5,478 distinct legal positions, which is roughly 800 million times smaller. Chess, for reference, has an estimated 10^46 possible positions (Shannon's number), which is incomprehensibly larger than Connect 4. The reason Connect 4 sits in the sweet spot for AI research is precisely this scale: large enough that brute-force is hard but possible, small enough that it can be fully solved with modern computers, and visually intuitive enough that students can follow the algorithm step by step. Allis's 1988 thesis took roughly nine months of analysis. Modern undergraduate students can replicate the result in a long weekend.

Can You Play Connect 4 With Two People Online?+

Yes. The Two-Player Hot-Seat mode on this implementation disables the AI entirely — Red and Yellow alternate on the same device, with separate win/loss/draw stats tracked from the AI ladder. There is no remote multiplayer, no server-side matchmaking, no friend codes, no signup. If you want to play someone in another room, hand them the device. If you want to play someone in another city, you'll need a different game. The in-person constraint is intentional. The original Connect 4 was a piece of plastic, two people, and a kitchen table. The Two-Player Hot-Seat mode honours that. Stats from hot-seat games are stored separately from AI-ladder stats — switching modes does not contaminate either set.

What Is the Daily Impossible Challenge?+

A once-per-local-day mode where the player gets a single Impossible-difficulty game and either earns the Daily Beater badge for that day or does not. Resets at local midnight with a countdown shown in the sidebar. A lifetime cleared on N days counter tracks total successful days; a separate day-streak counter tracks consecutive successful days, with the best-ever streak preserved permanently. The structure is borrowed from Wordle (Josh Wardle, 2021, acquired by The New York Times in January 2022 for a low seven-figure sum) — the archetypal example of a daily-challenge loop that produces high retention without ads, signups, or push notifications. Connect 4 with a daily challenge sits on the same retention curve as Wordle, the NYT Mini Crossword, and the daily Lichess puzzle. Return tomorrow. The countdown is real. The badge is real. Whether you earn it is up to you.

Does This Connect 4 Save My Progress?+

Yes. All progress saves automatically to your browser's localStorage under a single key. The save includes per-difficulty win/loss/draw stats, current and best streaks per level, your player name, your preferred chip colour (Red or Yellow), the Daily Impossible Challenge state and badge history, the day-streak and best-ever day-streak, lifetime games played, lifetime time played, and the Two-Player hot-seat stats (tracked separately from the AI-ladder stats). Returning visitors see a Welcome Back toast with their best Easy streak. The save is local to the browser — clearing browser data wipes it, and there is no cloud sync, no account, no email signup. There is also a Reset Stats button in the sidebar that wipes everything except your name and lifetime time-played, with a confirmation modal so it doesn't fire accidentally.

Is This Game Free?+

Yes. Connect 4 on frustrated.io is a real, playable Connect 4 game with no payment, no signup, no email capture, no premium tier, no DLC, and no associated NFT. The four difficulty levels, the Daily Impossible Challenge, the Two-Player Hot-Seat mode, the per-level stat tracking, the Reset Stats button, and the Share My Record button are all free and run entirely in your browser. localStorage is used for save state. The Web Share API is used for sharing your record (no image card — the record is a text list of stats). The Web Audio API generates the optional sound effects procedurally — there are no audio files. Standard page-level Google Analytics is enabled (see /privacy/). No additional third-party scripts run, no per-action trackers, no fingerprinting, no email capture. The game is genuinely a game in the conventional sense, which is unusual for the rest of this site, and is intentional. Brendan from Retention does not work here either.

Ready? Drop a chip. The centre column is open.

Play It →