Play Tic Tac Toe against the computer, share a board with a friend, or watch CPU vs CPU. Choose a classic or larger board and track scores in your browser.

Two-player or CPU game
Tic Tac Toe
Play classic Tic Tac Toe or try larger boards. Choose two-player mode, CPU difficulty, starting mark, and player mark.
X Ready
Press New Game to start
The board starts empty.
Last move: none
Your wins
0
CPU wins
0
Draws
0
Moves
0
Best streak
0
Classic 3×3 uses 3 in a row. Big 4×4 uses 4 in a row. Five Grid 5×5 uses 4 in a row. Impossible mode is perfect on 3×3 and tactical on larger boards.
Share this?
WhatsApp X Telegram Facebook LinkedIn Reddit

Choose a game

Open Game Options to select Player vs CPU, Two players or CPU vs CPU. Choose a board, starting mark and, when playing the computer, your own mark and difficulty. Press New Game after changing the options. Two-player mode uses the same screen, so players take turns on one device.

How to win on each board

  • Classic 3 by 3: complete a line of three.
  • Big 4 by 4: complete a line of four.
  • Five Grid 5 by 5: complete a line of four, not five.

Horizontal, vertical and diagonal lines count. A full board without a winning line is a draw. Once a square is occupied it cannot be played again. The latest move and winning line are highlighted.

Computer difficulty

Easy gives you room to practise. The higher levels look for threats and stronger moves. Impossible uses an exact search on the classic 3 by 3 board; larger boards use a bounded tactical search and are not guaranteed to play perfectly. CPU vs CPU lets you watch a game instead of taking a turn.

Undo, scores and keyboard play

Undo removes the last turn in two-player mode. Against the CPU it normally takes back your move and the reply from the computer together. A computer opening move cannot be taken back by itself. Undo is unavailable while watching CPU vs CPU.

A wooden tic tac toe board with X and O pieces.

New Game starts a fresh board. Reset Score clears the local score counters. Settings and scores are stored in this browser, so another browser, private window or cleared storage can have different totals. There is no account-based leaderboard or online multiplayer.

Use Tab to reach the controls and available squares, then Enter or Space to activate a square. On a phone, tap the square you want. A sound basic strategy is to take an immediate win, block an immediate threat and look for two threats at once. The larger boards change which spaces can connect into a winning line.