UtilityToolsLab

© 2026 UtilityToolsLab. Built and maintained by the UtilityToolsLab Team.

About·Changelog·Privacy Policy·Terms of Service·Contact
HomeBoard & Card GamesConnect Four

Related Tools

Tic-Tac-Toe

Connect Four Online — Play vs Computer

Play Connect Four online against the computer at three levels or a friend on one screen. Drop discs to get four in a row, with undo, hints and sound.

You Might Also Like

All Board & Card Games

Tic-Tac-Toe

Play noughts and crosses against an easy, medium or unbeatable computer, or a friend on the same screen, with a running score and win/draw/loss move hints.

Dice Roller

Roll d4 through d100 with standard dice notation like 2d6+3, a running history, and cryptographically random results. No physical dice required.

Word Counter

Count words, characters, sentences, paragraphs, lines and reading time as you type, with live keyword density analysis. Free and private.

Case Converter

Convert text to UPPERCASE, lowercase, Title Case or Sentence case, or to camelCase, PascalCase, snake_case and kebab-case for code. Paste and copy.

Connect Four takes a minute to learn and much longer to stop losing. Two players take turns dropping discs into a seven-column, six-row grid; each disc falls to the lowest empty slot, and the first to line up four of their colour across, down or diagonally wins. Here you can play the computer at three strengths or pass the screen to a friend, with undo, a hint button and a running score.

How to Use the Board and Keyboard

  1. Pick Computer or Friend. Against the computer, choose Easy, Medium or Hard and whether you play Red (moves first) or Yellow.
  2. Click any slot in a column to drop a disc there, or use the keyboard: keys 1 to 7 drop straight into that column, and the arrow keys plus Enter work too.
  3. Stuck? Hint marks the column the engine likes best for you. Undo takes back your last move and the computer’s reply.
  4. Four in a row flashes when someone wins. A full board with no line ends with “Draw — the board is full.”

How the Math Picks the Computer's Move

The grid has 69 possible lines of four. The computer searches ahead with negamax and alpha-beta pruning: 2 moves on Easy, 4 on Medium and 7 on Hard, trying the middle column first because it belongs to the most lines, which lets the search discard weak branches sooner. When the search runs out of depth it scores the position by counting open lines with three or two of a colour and nothing of the other, plus a small bonus for discs in the centre column. Every level takes a winning move and blocks an immediate threat; Easy also plays a random column about a third of the time. In testing, Hard beat Easy 11 games to 0 and Medium 9 to 2.

Edge Cases: Full Columns, First Move and Draws

A full column ignores clicks. Red always moves first, and the first player has the edge in Connect Four: with perfect play the player who starts in the centre column wins, which is why choosing Yellow against Hard is the tougher game. Hard is strong but not perfect, since a seven-move search cannot see every long trap. Scores last until you close the tab; sounds follow the shared sound settings below the board, where they can be turned down or off.

Opponent

Difficulty

You play

You (Red)

0

Draws

0

Computer (Yellow)

0

Your turn (Red)

Sound & alerts· Chime, 80%▾

When time is up the sound repeats, the tab title flashes and phones vibrate. Click or press any key on the page to stop it. Browsers only allow sound after you have clicked on the page once, so press Test sound if you will leave this tab untouched.