Connect 4
WorksheetsFreeNo sign-up
Take turns dropping discs into the 7 columns. The first player to line up four of their own discs across, down or diagonally wins. You play red and move first; the hard computer looks six moves ahead.
How to play Connect 4
- Click a column to drop a disc; it falls to the lowest empty space.
- Players alternate. Four in a row (horizontal, vertical or diagonal) wins.
- If all 42 spaces fill with no line, the game is a draw.
Strategy
- Control the center column: more lines of four pass through it than any other.
- Block three-in-a-rows before they become four.
- Build two threats at once so your opponent can stop only one.
- Think about which spaces become playable after each move.
The math behind it
The board has 7 × 6 = 42 spaces and 69 possible winning lines. In 1988 the game was solved: with perfect play the first player can always win by starting in the center. The computer here uses minimax with alpha-beta pruning to skip moves that cannot change the result.
Connect 4 quiz: 10 questions
Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.
Quiz complete
Frequently asked questions
Can I beat the hard computer?
Yes, but it looks 6 moves ahead, so plan double threats.
Who goes first?
Red (you) goes first against the computer.
Can two people play?
Yes. Choose Two players and take turns on one device.
Is Connect 4 solved?
Yes. The first player wins with perfect play starting in the center.
Does it work on phones?
Yes. Tap a column.
Sources
Related calculators
More worksheets calculators
Related to This Article
More math articles
- Top Calculators for the TASC 2027: Quick Review
- What’s The Best Laptop For Online Math Teachers?
- Limited government
- How to Compare Money Amounts
- Free Grade 6 English Worksheets for Nevada Students
- 6th Grade CMAS Math Worksheets: FREE & Printable
- The Ultimate ISEE Upper-Level Math Course (+FREE Worksheets & Tests)
- Values, Beliefs, Norms, and Sanctions
- 10 Most Common 6th Grade Common Core Math Questions
- Etsy Fee Calculator



What people say about "Connect 4 Online: Play the Computer or a Friend"?
No one replied yet.