useKits
Tic-Tac-Toe icon

Tic-Tac-Toe

Play Tic-Tac-Toe against the computer with an unbeatable Hard mode or a casual Easy mode. Classic Xs and Os in your browser.

Difficulty

Your move — you're X

Tap an empty square to place your X. The computer plays O. On Hard it uses an unbeatable minimax strategy — the best you can do is force a draw!

You

0

Draws

0

CPU

0

Tic-Tac-Toe is the timeless pen-and-paper game of Xs and Os on a 3x3 grid. You play as X against the computer, racing to line up three of your marks in a row. Choose Easy for a casual game or Hard for a computer that plays perfectly and can't be beaten.

How to use the Tic-Tac-Toe

  1. Pick a difficulty — Easy (random moves) or Hard (unbeatable).
  2. Tap any empty square to place your X.
  3. The computer responds with its O, and play alternates.
  4. Get three in a row — across, down, or diagonally — before the computer does.

Frequently asked questions

Can you always win at Tic-Tac-Toe?
No. With perfect play from both sides every game ends in a draw, which is why the Hard computer can't be beaten — the best you can force against it is a tie.
What's the difference between Easy and Hard?
Easy makes random legal moves so it's beatable for a quick win, while Hard uses the minimax algorithm to play optimally and will punish any mistake.
Who goes first?
You play as X and move first each round, which is the standard advantage in Tic-Tac-Toe. The computer plays O in response.
How is the score tracked?
A scoreboard counts your wins, draws, and the computer's wins for the session, so you can see how you're doing over multiple rounds.

Related tools