Skip to content
Guides

How to Play Tic Tac Toe Online

5 min read · Free to play on Boardly · 2 players or vs AI

Rules, modes and player counts: Tic-Tac-Toe game page

Last updated

How do you play Tic Tac Toe online?

Two players take turns claiming squares on a 3×3 grid, X first, and whoever gets three of their own mark in a row – along one of the three rows, three columns or two diagonals – wins the round.

What You Need

  • 2 players — or play solo against AI
  • A browser — desktop, tablet, or mobile
  • No account required (guest play available)
  • Free — no ads, no download

The Rules

  1. 1Choose your markOne player is X, the other is O. X opens the first round; in a best-of series the two marks take it in turns to start.
  2. 2Take turnsPlayers alternate placing their mark in any empty cell on the 3×3 grid.
  3. 3Win with three in a rowGet three of your marks in a row — horizontally, vertically, or diagonally — and you win.
  4. 4DrawIf all 9 cells are filled and neither player has three in a row, the game is a draw. With perfect play from both sides, every game ends in a draw.

All 8 Winning Lines

There are exactly 8 ways to win. Three in any of these lines wins the game:

Top row (1-2-3)
Middle row (4-5-6)
Bottom row (7-8-9)
Left column (1-4-7)
Middle column (2-5-8)
Right column (3-6-9)
Diagonal (1-5-9)
Diagonal (3-5-7)

Strategy — How to Never Lose

  • Start in the center (as X)

    The center square is part of 4 winning lines — more than any other cell. Taking it first gives you the most winning options.

  • Take a corner if center is taken

    Corners are each part of 3 winning lines. If your opponent takes center, play a corner to set up diagonal threats.

  • Block before attacking

    If your opponent has two in a row, block the third cell immediately. Missing a block almost always loses the game.

  • Set up two winning threats at once

    If you can put yourself one move away from winning in two different places at the same time, your opponent can only stop one. You win the other.

  • Stop your opponent from doing the same

    If you notice your opponent building toward two threats at once, block them — either take the square they need, or create your own threat so they have to respond to you.

Playing on Boardly

vs AI: Play solo against a bot — great for practising strategy without waiting for an opponent.

vs Friend: Share a lobby link and play in real time. No account needed for either player.

Match mode: Play a series of rounds to determine the overall winner — best of 3 or best of 5.

All of these are chosen when you create a game from the Tic-Tac-Toe game page.

Tic Tac Toe Questions

How many ways are there to win?

Eight: three rows, three columns and two diagonals. The centre square sits on four of them, each corner on three, and each edge square on only two, which is the whole of the opening theory.

Can you always win at Tic Tac Toe?

No. Two players who both know what they are doing draw every time – the game is solved. What you can do is never lose, by taking the centre when it is free and answering every two-in-a-row before building your own.

Why do so many games end in a draw?

Because the board is small enough that both players can see every threat. Draws are the normal result between equals, which is why a best-of-three or best-of-five series is the usual way to settle it.

Can I play against the computer?

Yes, on three levels. The easy bot misses threats, the medium one blocks but does not plan, and the hard one plays the solved game – against it a draw is the best result available to anyone.

How long does a round take?

Under a minute. That is what makes it the best game here for a rematch: the two of you can play a five-round series in the time a single round of something larger would take.

Does X always go first?

X opens the first round, and going first is a real advantage in a game this small. The game hands the opening move to the other mark each round, so nobody has to swap seats to share it out. It does not come out exactly level over an odd number of rounds, though: across a full best-of-three X opens two of them and O one.

Ready to put your strategy to the test?

Play Tic Tac Toe Now →

Or read about Tic-Tac-Toe on Boardly first.