Home/Connect 4

🔴🟡 Connect 4 — vs AI

You
AI
🟡 You: 0  |  🔴 AI: 0

🎯 How to Play

  • Click any column to drop your disc — it falls to the lowest empty spot.
  • Connect four discs horizontally, vertically, or diagonally to win.
  • AI uses Minimax with alpha-beta pruning — 3 difficulty levels.
  • Block the AI while building your own line!

📖 Game Description

Connect 4 is the timeless two-player connection game. This version features an AI opponent using Minimax search with alpha-beta pruning at 3 difficulty levels (Easy=1 ply, Medium=3 ply, Hard=5 ply). Drop red and yellow discs and race to align four!