Tic Tac Toe

Classic X and O - vs computer or two players on one screen

100% free. Runs entirely in your browser - your files and data never leave your device and nothing is uploaded to any server.

XYou0
0ties
0ComputerO

Your turn - place an X

Opponent
Difficulty
Board
Good to know
  • X and O take turns starting, so every round is fair.
  • On hard, the 3×3 computer never loses - aim for a tie!

About this tool

The classic X and O grid game - get three in a row before your opponent does, whether you're playing against the computer or a friend taking turns on the same screen.

How to use this tool

  1. Choose opponent modeStart vs computer or local friend.
  2. Control key squaresTake center/corners to create stronger lines.
  3. Block and forkPrevent opponent wins while building dual threats.
  4. Finish or force drawComplete row/column/diagonal or secure safe outcome.

How to play tic tac toe

Players take turns placing X and O on a 3 x 3 grid. The first to get three of their marks in a row - across, down or diagonally - wins; if all nine squares fill without a line, it is a draw. The game is also known as noughts and crosses.

Play the computer at easy, medium or hard, or a friend on the same screen. On hard the computer plays perfectly, so the best you can do is a draw - start in a corner and watch for a fork, a move that threatens two lines at once.

Key features

  • Teaches core strategy and anticipation basics.
  • Fast rounds with clear win/draw outcomes.
  • Great beginner game for planning skills.
  • Works equally well for solo and two-player play.

Common uses

  • Quick strategy challenge between tasks.
  • Teaching kids turn-based planning.
  • Practicing defensive/offensive balancing.
  • Casual game sessions in classrooms.

Tips for better results

  • Center is usually strongest first move.
  • Scan board for two-in-row threats every turn.
  • Use corners to create fork opportunities.
  • Play for draw if winning line is unavailable.

Mistakes to avoid

  • Ignoring immediate block requirements.
  • Playing random edge moves too early.
  • Missing fork setups by opponent.
  • Focusing attack while losing defensively.

Frequently asked questions

No - with optimal play from both sides, Tic Tac Toe always ends in a draw; it's only losable against a perfect opponent if you make a mistake, which is part of what makes it a good game for learning basic strategic thinking.

Given the game's simplicity, a well-built AI can play perfectly (never losing) - check if difficulty levels are offered if you want an easier opponent to practice against.

Yes - two-player mode lets you and a friend take turns marking X and O on the same device.

A corner is the strongest opening: it gives the opponent the most ways to go wrong. The centre is also safe. If your opponent takes a corner, reply in the centre to avoid a quick fork.

A move that creates two lines of two at once. Your opponent can only block one, so you win with the other - it is the main way to beat a player who does not look ahead.

Yes. It teaches taking turns, spotting patterns and thinking one move ahead, and a game lasts under a minute.