Skip to content
Toolew.com

Tic Tac Toe

Classic 3x3 Tic Tac Toe, play a friend on the same device or challenge an easy or unbeatable-hard CPU.

Runs in your browser. Your data is not uploaded.
Loading tool…

This guide is not yet available in your language and is shown in English.

Tool guide

What this tool does

Tic Tac Toe is the classic 3x3 X-and-O game, playable two-player on the same screen, against an easy CPU that picks randomly, or against a hard CPU that plays a perfect minimax strategy and never loses.

Tic Tac Toe is one of the oldest and most familiar paper-and-pencil games, three in a row on a 3x3 grid wins, and it translates perfectly to a quick browser game for two people or a solo match against the computer.

This version offers two-player mode on the same device, an easy CPU opponent that picks a random open square, and a hard CPU that plays a perfect minimax strategy, the best you can ever achieve against it is a draw.

How to use Tic Tac Toe

  1. Choose two players, easy CPU, or hard CPU as your opponent.
  2. Click any empty square to place your mark.
  3. Get three in a row, column, or diagonal to win.
  4. Click "New round" to play again, the running score is tracked.

Tips for better results

  • Against the hard CPU, the mathematically best outcome you can achieve with perfect play from both sides is always a draw, it’s a solved game, X can never be forced to lose if both players play optimally.
  • Taking the center square first is generally the strongest opening move in Tic Tac Toe, giving you the most potential winning lines through that square.
  • The easy CPU is deliberately unpredictable since it just picks a random open square each turn, useful for a more casual, beatable match.
  • The running score (X wins / draws / O wins) persists across rounds until you switch opponent modes or reload the page.

Common use cases

  • A quick, no-setup two-player game on a shared device.
  • Practicing against an unbeatable CPU to internalize optimal Tic Tac Toe strategy.
  • A casual, low-stakes game against an easy, beatable CPU opponent.
  • Settling a quick decision or taking a short break with a familiar classic game.

Common mistakes to avoid

  • Expecting to ever beat the hard CPU with perfect play on both sides, Tic Tac Toe is a fully "solved" game, the best possible outcome against a perfect opponent is a draw, not a win.
  • Ignoring the center square early, it participates in the most potential winning lines (4 of the 8 total), skipping it in the opening often weakens your position.
  • Forgetting to block an opponent’s two-in-a-row, the single most common losing mistake in Tic Tac Toe is missing an immediate blocking move.

Frequently asked questions

Can I ever beat the hard CPU?

Not with its perfect minimax strategy, Tic Tac Toe is a solved game, with correct play from both sides the result is always a draw; the hard CPU never makes a mistake that would let you win.

What does the easy CPU do differently?

It picks a random open square each turn rather than playing strategically, making it genuinely beatable for a more casual match.

Does the score reset automatically?

No, the running score persists across rounds within the same session; use "New round" to play again without resetting the score, or switch opponent modes to reset it.

Is this played locally or against a real online opponent?

Two-player mode is on the same device, taking turns; CPU modes play entirely in your browser, there’s no online matchmaking.

Feedback & suggestions

Help us improve Tic Tac Toe. We read every message.

Rating (optional)
Necessary
Required for security, language and theme preferences. Always on.