Connect Four
Drop coloured discs to connect four in a row before the AI does. Classic two-player strategy game, now vs a smart AI.
Click a column or press keys 1–7 to drop a disc. Yellow = you, Red = AI.
How to use
- 1Your turn
You play as the yellow discs. Click a column to drop a disc.
- 2AI turn
The AI (red) responds immediately with its best move.
- 3Win condition
Get four of your discs in a row — horizontally, vertically, or diagonally.
- 4New game
Click New Game to reset the board and go again.
Frequently asked
Click a column or press number keys 1–7 to drop your disc into that column.
The AI uses minimax with alpha-beta pruning (depth 5), so it plays a strong game but is still beatable.
Connect four of your discs in a row — horizontally, vertically, or diagonally.
Currently single-player vs AI only. Two-player support on the same device may come later.
Related tools
- MinesweeperClassic Minesweeper in your browser. Three difficulty levels, safe first click,
- SudokuClassic 9×9 Sudoku puzzle in your browser. Three difficulty levels, hints, valid
- 2048Play 2048 in your browser. Slide tiles to merge matching numbers and reach the 2
- BattleshipClassic Battleship vs AI. Place your fleet, then take turns firing at the enemy
- CheckersClassic Checkers (Draughts) against an AI opponent. Capture all enemy pieces or
- Tic-Tac-ToeClassic Tic-Tac-Toe against an unbeatable AI or a friend. Three difficulty level