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
- Click a column to drop your disc into the lowest empty slot.
- AI replies with its colour.
- 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.