Connect Four

Human vs Computer • SignalBound Games Lab

A fast, visual strategy game: drop discs into a grid and try to connect four in a row. This page is designed like a small exhibit — learn the rules, then scroll down and play an AI opponent.

Type: abstract strategy Players: 1–2 (this demo: vs computer) Skill: beginner → intermediate Board: 7 columns × 6 rows
Play Now ↓ Learn the Rules Strategy Tips

Tip: If you’re demoing “what AI can do,” set Difficulty to Normal and let the computer go second so people can see it block threats.

Origins & Cultural Context

Connect Four became widely popular as a “quick-to-learn” strategy game in the 20th century, especially as a family game and classroom logic exercise. Its appeal is that the rules are simple, but the tactics (threats, blocks, forks) arrive quickly — and are easy to see.

Equipment & Setup

  • 7×6 vertical grid
  • Two colors of discs
  • Pieces “fall” to the lowest available slot in a column

Objective

Be the first to connect four of your discs in a straight line.

Rules at a Glance

  • On your turn: choose a column and drop one disc
  • Gravity: the disc lands on the lowest empty cell in that column
  • Win lines: horizontal, vertical, or diagonal
  • Draw: the board fills with no winner
Teaching note: This is a great intro to scanning a grid (win detection) and simple AI search (minimax) without needing real-time animation.

Strategy Basics

Play the Game

Mode: Human (Red) vs Computer (Black) • Difficulty adjustable
How to play: click a column number to drop a disc. Undo removes your move and the AI reply.
What the computer is doing
minimax • alpha-beta
• The AI simulates future moves and picks the best outcome for itself
• It assumes you will also choose strong moves (so it plans defensively)
• Higher difficulty looks further ahead (stronger, slightly slower)
Move log

Sources & Further Reading

Optional: add links to Connect Four strategy articles, minimax explanations, or a short note about why grid-based games are a popular teaching tool for programming.