Home Widgets Connect Four
Connect Four icon

Connect Four

Drop discs. Connect four. Beat the AI.
GameFree

The classic, with a real opponent.

Drop discs into a 7×6 grid and connect four — horizontally, vertically, or diagonally. The AI uses minimax with alpha-beta pruning and a 4-in-a-row window heuristic, with three difficulty levels: easy (depth 1), medium (depth 3), and hard (depth 5).

Tap the column bar to drop, or use the 1–7 keys. Press H for a hint that flashes the best column, or N to start a new game. Wins, losses, and draws are tracked per-difficulty in localStorage.

⚙️ Settings & Customization

  • Theme
  • Language
  • Size
  • Transparent background
  • 🎨 Accent Color

📖 How to embed in Notion

  1. Copy the embed link from the sidebar on the right.
  2. Open the Notion page you want the widget on and type /embed.
  3. Paste the link into the embed dialog and press Embed link.
  4. Drag the embed's bottom edge to resize it to taste.
🆕 What's new in v1.1
  • ✦ 21 languages with RTL for Arabic & Hebrew
  • ✦ Three AI strengths via minimax with alpha-beta pruning and center-column ordering.
  • ✦ Hint button flashes the best column without auto-dropping.
  • ✦ Per-difficulty W/L/D tally in localStorage so each level has its own scoreboard.
  • ✦ Keyboard shortcuts: 1–7 to drop, H for hint, N for new game.
  • ✦ Animated drop with winning-line pulse on the four connected discs.
  • ✦ Random first-mover so the player isn't always first.

You might also like.

CategoryGame
CompatibilityNotion · iframe
Size~16 KB
ThemeLight · Dark
Version1.1.0
UpdatedJune 2026
Languages21 languages