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.