Name
connect-four: be first to connect four checkers in a line.
Rules
- Board is 7 columns × 6 rows. Checkers drop from the top and stack from the bottom.
- Players alternate turns. Amber moves first, mint second; against the AI you are amber unless you pick
AI first.
- First to align four in a row (horizontally, vertically, or diagonally) wins.
- If the board fills with no winner, it's a draw.
Controls
- Tap / click the arrow above any column to drop your checker there.
↶ undo takes back your last move and the AI's reply (one move with 2 players). Undo is off online.
↻ new game resets the board.
- Switch sides or play locally with the
Mode selector.
- Online with a friend shows an invite link to send; paste the reply code your friend sends back to connect. The inviter plays amber and moves first.
- Keyboard: Tab to the column buttons, ←/→ choose a column, Enter or Space drops.
Difficulty
- Easy: AI searches depth 2 (1 full ply + reply). Beatable by a novice.
- Medium: depth 4. Exploits obvious traps.
- Hard: depth 6. Tough.
- Every level uses alpha-beta search, tries the center columns first, and scores every window of four plus a center bonus.
Strategy
Control the center column first. A checker there belongs to four winning lines. Watch for "odd threats" on row 1, 3, 5 if you move first.