Tic Tac Toe — Friend or Computer

Friendly, distraction-free Tic Tac Toe. Private by design—everything runs locally in your browser.

Board

Ready. Choose options and press New Game to start.

Options & Score

Tip: Use Tab + Enter/Space to play entirely by keyboard.

Player (X)

0

Draws

0

Computer (O)

0

About this game

Play vs a friend on the same device or try the computer on Easy, Normal, or Unbeatable. Use Hints to preview the best move, or Undo to rewind. Scores and your preferences are saved on this device only.

Educational Value: Strategy, Patterns & History

Tic Tac Toe—also known in the UK, Ireland, Australia and New Zealand as Noughts and Crosses—is more than a quick pastime. It’s a compact lesson in logic, planning, and pattern recognition. Because the board is only 3×3, new players rapidly see how choices lead to consequences, which makes it perfect for classrooms, home learning, and brain breaks at work.

Why it’s great for learning

  • Strategic thinking: Players learn to weigh options, anticipate replies, and choose the move with the best long-term outcome.
  • Spatial reasoning: Lines, diagonals, and forks (two threats at once) help learners visualise patterns and symmetry.
  • Computational thinking: Our Unbeatable mode uses the classic minimax search with alpha–beta pruning—an approachable doorway to AI concepts.
  • Turn-taking & SEL: Short rounds encourage good sportsmanship, resilience, and quick reflection (“What would I try next time?”).
  • Accessible practice: Keyboard controls, clear contrast, and a simple grid make the game inclusive for a wide range of players.

Quick strategy primer (beating Easy/Normal)

  1. Start in a corner if you go first. It maximises chances to create a fork later.
  2. Take the centre if your opponent doesn’t. The centre controls the most potential winning lines.
  3. Block immediate threats before creating your own. Defence first; then build pressure.
  4. Make forks (two winning lines at once). If you can’t fork, prevent your opponent from doing so.
  5. Play for the draw vs. perfect AI. With optimal play from both sides, 3×3 Tic Tac Toe is a forced draw—so focus on avoiding mistakes.

A tiny bit of history

Grid-based “three-in-a-row” games go back a long way. The ancient Romans played a circle-and-stone game often linked to terni lapilli, where each player had three pieces to move on a small grid. The modern pencil-and-paper form gained popularity in the 19th–20th centuries under names like “Tick-tack-toe” (US/Canada) and “Noughts and Crosses” (UK/Ireland). Today it’s a staple warm-up in maths clubs and coding workshops because the full game tree is small enough to understand—and small enough for a computer to solve perfectly.

Classroom & home ideas

Maths link
Have learners count winning lines, compare first-move advantage, or chart outcomes across multiple rounds.
Computing link
Discuss how the Hints feature mirrors an algorithm that evaluates future positions.
Language link
Use regional names—Tic Tac Toe and Noughts and Crosses—to spark a quick GEO/ESL discussion.

Tip: Turn on Hints to see the best move, then try to explain why it’s best. Explaining your reasoning is the fastest way to improve—whether you’re playing in London, Dublin, Toronto, Sydney, or anywhere else in the world.

Explore more tools