ZumaTools

Tic Tac Toe

Play against a friend on the same device or challenge the computer on easy or unbeatable difficulty.

Player 1 (X) to move

Round 1

0

Player 1 (X)

0

Draws

0

Player 2 (O)

The first player alternates each round. Everything runs in your browser.

How it works

  1. Choose a mode: two players sharing one device, or vs computer with easy or unbeatable difficulty.
  2. Tap any empty square to place your mark — the status line always shows whose turn it is.
  3. When a round ends the score updates and the winning line is highlighted; press Next round to play again with the other side moving first.

Frequently asked questions

How does the unbeatable computer opponent work?
It uses the minimax algorithm, which searches every possible continuation of the game before each move. Because tic tac toe has a small game tree, the computer can evaluate all outcomes and always pick a move that never loses. The search runs instantly in your browser.
Is it actually possible to beat the unbeatable mode?
No. Tic tac toe is a solved game: with perfect play from both sides every game ends in a draw. Against the minimax opponent the best result you can achieve is a tie, but any mistake you make will be punished with a win for the computer.
What is the best first move in tic tac toe?
The center is the strongest opening because it takes part in four possible winning lines. Corners are the next best choice with three lines each, while edges only join two. If your opponent opens in the center, answering in a corner is the standard defense.
Who goes first in each round?
The first player alternates automatically every round, so neither side keeps the first-move advantage across a match. The status line and the round counter make it clear who is due to start, and the score tally tracks X wins, O wins, and draws separately.
Does this game need an internet connection or send any data?
No. The whole game, including the computer opponent, runs as JavaScript inside your browser. Nothing is uploaded, no account is needed, and once the page has loaded you can keep playing even if your connection drops.

About this tool

This is a clean, fast tic tac toe game you can play free in your browser — no app, no sign-up, no ads between rounds. Pick two-player mode to pass the phone back and forth with a friend, or play against the computer at two levels: easy, which places marks at random, and unbeatable, which never loses. Large touch-friendly squares make it comfortable on phones, and a running score keeps the match going across as many rounds as you like.

The unbeatable difficulty is powered by the minimax algorithm, implemented directly in the page. Before every move the computer simulates each of its options, then each of your possible replies, and so on to the end of the game, scoring quicker wins higher and later losses less badly. Tic tac toe has at most nine moves, so this exhaustive search completes in milliseconds on any device. Everything runs client-side: no move data ever leaves your browser, and the game works offline once loaded.

Two details keep matches fair. First, the starting player alternates every round, because moving first in tic tac toe is a real advantage — the opener can force a draw at worst with correct play. Second, the score panel counts X wins, O wins, and draws separately, so a long session against a friend settles who really played better rather than who happened to start more often.

A practical tip for playing against the unbeatable computer: aim for the draw. Open in the center or a corner, block every two-in-a-row immediately, and watch for forks — positions where the opponent threatens two lines at once. Learning to spot forks here transfers directly to teaching kids the game, warming up your tactical thinking, or just settling a quick best-of-five during a break.

Related tools