Tic Tac Toe

Tic Tac Toe vs AI

Play Tic Tac Toe free in your browser — no download and no sign-up. Face an unbeatable AI, a friend on the same screen, or an online room you share with a link.

Loading…

Tic Tac Toe is the timeless 3×3 game of X's and O's. Two players take turns marking squares, and the first to line up three in a row — across, down or diagonally — wins. It takes seconds to learn, yet it is still the cleanest possible introduction to game strategy.

Why Play Tic Tac Toe Here

The whole game lives in your browser. There is no app to download and no account to create — just open the page and the grid is ready, on phone, tablet or desktop.

Play solo against the computer at three strengths, take turns with a friend on one device, or open an online room and invite someone with a single link. You are always X and always move first, and an undo button lets you take a move back.

How to Play Tic Tac Toe Online

Pick a mode: versus AI on easy, medium or hard, same-device two-player, or an online room. Tap any empty square to place your mark.

The first player to align three marks horizontally, vertically or diagonally wins, and the winning line lights up. If all nine squares fill with no line of three, the round is a draw.

Rules and Perfect Play

On hard, our AI uses the minimax algorithm and plays perfectly — it can never be beaten, only drawn. On easy and medium it mixes in occasional random moves, so a win is well within reach.

Because both sides can always force at least a draw with perfect play, Tic Tac Toe is a 'solved' game. The real challenge is spotting the moment your opponent slips.

Strategy and Forks

The center square sits on four of the eight possible lines, so taking it first gives you the most ways to win. If the center is gone, grab a corner rather than an edge.

The winning idea is the 'fork': a single move that creates two separate three-in-a-row threats at once, because your opponent can only block one of them. Just as important, always block your opponent's two-in-a-row before you build your own.

Tic Tac Toe Tips

  • Take the center first whenever you can — it touches the most winning lines.
  • If the center is taken, prefer a corner over an edge.
  • Set up a fork: two ways to win at once, so one block can't stop both.
  • Always block your opponent's two-in-a-row before completing your own line.
  • Practice on hard to learn the perfect lines, then drop to easy or medium for a real shot at winning.

Frequently Asked Questions

Is Tic Tac Toe free to play?

Yes. It is completely free in your browser, with no download and no account of any kind.

Can I beat the hard AI?

No. On hard the AI plays perfectly with minimax, so the best result possible is a draw. Drop to easy or medium for a real chance to win.

Who goes first?

You play X and always move first, which carries a small advantage if you take the center.

Can two people play on one device?

Yes. Same-device two-player mode lets two players share one screen, and you can also open an online room to play someone by link.

Is Tic Tac Toe the same as Noughts and Crosses?

Yes. Tic Tac Toe, Noughts and Crosses, and Xs and Os are all names for the same 3×3 game.

Can I undo a move?

Yes. The undo button takes back the last move, which is handy while you are learning the perfect lines.

Why do so many games end in a draw?

Because Tic Tac Toe is solved: with careful play both sides can always avoid losing, so well-matched games naturally end level.

You may also like