ShadowBot Gaming
๐Ÿ”ด๐ŸŸก Single Player ยท Multiplayer

Connect 4

Drop pieces, line up four. Vs AI or play live with a friend.

Your turn
You: ๐Ÿ”ด Red ยท AI: ๐ŸŸก Yellow

About Connect 4 โ€” ๐Ÿ”ด๐ŸŸก Drop-and-line-up classic

Drop coloured discs into a 7ร—6 grid and try to line up four in a row โ€” horizontally, vertically, or diagonally. Three AI difficulty levels (alpha-beta minimax on hard) plus live multiplayer rooms via shareable links.

How to play Connect 4

  1. Click a column to drop your disc into the lowest empty slot.
  2. AI replies with its colour.
  3. First to get 4 in a row (horizontal / vertical / diagonal) wins.

Tips & strategy

  • Play the center column first โ€” it touches the most possible winning lines.
  • Watch for "double threats": two unblockable wins in one move.
  • Block the opponent's 3-in-a-row immediately, even if your own attack looks tempting.

FAQ

How does the Hard AI think?
Alpha-beta pruning minimax with depth 5 plus a positional heuristic favouring the center column.