Tic-Tac-Toe

Play now
Classic 2 playerclassicquickvs cpu Added19 Oct 2026 Built by PlayBolt LicenceFree, no account
Tic-Tac-Toe
Works with keyboard and touch. Original PlayBolt game Rotate for wide games · use fullscreen for the whole board
Editor's note

Tic-Tac-Toe against a friend or against an unbeatable CPU, a more interesting proposition than it sounds: perfect play covers only about a third of positions and the CPU knows all of them. It is also the first game we would hand to a five-year-old.

Tic-Tac-Toe is the simplest strategy game there is: a 3×3 grid, two symbols, and the first line of three wins. Rounds last seconds, which is exactly the point.

The game supports two local players on one device, or a CPU opponent that plays a perfect minimax search. Against the CPU, the best you can achieve is a draw — it will block every threat and take every winning move.

The scoreboard tracks wins for X, O and draws across the session. Press 1–9 to play with the keyboard.

How to play Tic-Tac-Toe

  • X moves first. Click a square or press 1–9.
  • The first player to line up three symbols wins.
  • Toggle between 2 Players and vs CPU at the top.
  • Use New Round to reset the board; scores carry over.

Tips & strategy

Tic-Tac-Toe is solved: the centre is the strongest opening, and a perfect player never loses.

  • Take the centre if you move first; it is part of four winning lines.
  • If the centre is taken, play a corner. Corners create more forks than edges.
  • A fork is two threats at once; set one up and the opponent can only block one.
  • Always block an immediate three before building your own.
  • Against the CPU, a draw is the best result — do not overextend chasing a win.
  • As O, mirror X's moves to force a draw rather than trying to win.

Controls

InputAction
Click / TapPlace symbol
1–9Place symbol
Mode2P / CPU

Questions

Is Tic-Tac-Toe free to play?
Yes. Tic-Tac-Toe is free to play in your browser with no account, subscription or download.
Does Tic-Tac-Toe work on mobile?
Yes. It responds to touch controls and runs on modern mobile browsers, though it is easier on a larger screen.
Do I need to install anything?
No. The game runs inside this page. Press play and it starts loading the game files.

Embed this game

Copy the code below to add Tic-Tac-Toe to your own site. It is free, loads in an iframe, and works on desktop and mobile.

<iframe src="https://playbolt.app/play/tic-tac-toe/" width="800" height="600" title="Tic-Tac-Toe on PlayBolt" frameborder="0" allow="autoplay; fullscreen; gamepad" loading="lazy" style="border:0;max-width:100%;aspect-ratio:4/3"></iframe>
All embed codes