A classic, perfected

Play Tic Tac Toe Online Free

Tic tac toe (also called noughts and crosses) is the simplest strategy game there is — three in a row wins. This free version runs entirely in your browser: no download, no sign-up, no ads. Play pass-and-play with a friend on the same device, or challenge a computer opponent built on the minimax algorithm, which plays perfectly and never loses. Prefer a fairer fight? Switch to Easy mode and the computer will occasionally slip up.

X 0
Draws   0
O 0

X's turn

How to Play Tic Tac Toe

  1. Choose a mode. Pick "2 Players" to share the device with a friend, or "Vs Computer" to play against the AI.
  2. Set the difficulty. In computer mode, choose Unbeatable for a perfect opponent or Easy if you want a real chance to win.
  3. Take turns. X always moves first. Click or tap any empty square to place your mark.
  4. Get three in a row. Line up three matching marks horizontally, vertically, or diagonally to win the round.
  5. Watch the score. Wins, losses, and draws are tallied automatically. Click "New Round" to keep playing or "Reset Match" to clear the scoreboard.

Frequently Asked Questions

Can you ever beat a perfect Tic Tac Toe AI?

Not if it's playing correctly. Tic tac toe is a solved game — when both sides play every move optimally, the result is always a draw, never a win for either player. The Unbeatable difficulty uses the minimax algorithm to evaluate every possible sequence of moves, so it always finds the best response and can never be beaten, only drawn. Switch to Easy difficulty for a real chance to win, since the computer will occasionally make a weaker move on purpose.

How do I play against a friend?

Select 2 Players from the mode toggle above the board. You'll take turns on the same device: X moves first, then O, back and forth until someone gets three in a row or the board fills up.

What is the best tic tac toe strategy?

Take the center square first if it's open, since it belongs to four possible winning lines. If the center is taken, take a corner. Before every move, check whether you can win immediately, and if not, block your opponent from completing their line. Watching for forks — moves that create two winning threats at once — is the key to beating anything less than a perfect opponent.

Does tic tac toe always end in a draw with perfect play?

Yes. If both players always choose the best available move, neither can force a win, and the game ends in a draw every time. Wins only happen when one player makes a mistake, which is part of why the game is popular for teaching basic game-tree strategy.

Is this Tic Tac Toe game free to play?

Yes. The game is completely free, requires no account or download, and runs directly in your web browser on desktop or mobile.

How does the minimax algorithm work?

Minimax looks ahead through every possible sequence of remaining moves and scores each final outcome as a win, loss, or draw for the computer. It assumes the opponent will also always play their best move, then works backward to pick the move that guarantees the best possible result for itself, which is why it never loses.