Skip to main content
Board & Strategy game1–2 playersTouchHow to play
Preparing workspace

Tic-Tac-Toe Game

Play tic tac toe with a friend or the computer. Undo moves, then review wins, blocks and forks on the move timeline. Your tally stays in your browser.

Still loading. If the tool doesn’t appear, reload this page.

How to play Tic-Tac-Toe Game

Keyboard
Arrow keys move between cells, Enter/Space places a mark, 1-9 play a cell directly.
Touch
Tap a cell to place your mark.
Mouse
Click a cell to place your mark.

Tips

  • Open in the centre or a corner, then look for a fork: two lines that both threaten to win.
  • Hard never loses, so a draw against it means you played perfectly.

About this tool

Tic-Tac-Toe Game — Play Free Online, 2 Player or vs Computer

Play a responsive Tic-Tac-Toe game with score tracking, win detection, draw handling, and optional computer moves.

Choose two players on one device or face the computer on easy, medium or hard. Take turns placing X and O on the 3×3 board. Undo an active turn to retry it, or jump to a turn in the finished round to see wins, blocks and forks. The win and draw tally is saved in your browser.

How to use Tic-Tac-Toe Game

  1. Pick a mode under Round settings: "Two players" for hot-seat on one device, or "Vs computer" to play X against the machine's O.

  2. If you chose Vs computer, set Difficulty — "Easy: random moves", "Medium: win and block" or "Hard: never loses". The selector stays disabled in two-player mode.

  3. Tap a cell or place a mark with your keyboard. Use Undo move to retry during play. When the round ends, select Review moves or start a new round with Restart Game.

Why use Tic-Tac-Toe Game

  • Two modes, one board

    Switch between hot-seat two-player and a computer opponent at any time; switching clears the board and starts a fresh round without touching the score.

  • Three honest difficulty levels

    Medium looks exactly one move ahead — win, block, take centre — so it is beatable practice. Hard searches every remaining move and can only be held to a draw.

  • Everything runs in your browser

    The board state, win detection and the opponent's moves are all computed client-side in React. No account, no install, and no move is sent to a server.

  • Undo and review

    Take back a move while the round is active. After a win or draw, step through the finished round with its result and tally preserved.

  • Keyboard and screen-reader ready

    The nine cells are real buttons in an ARIA grid. Arrow keys move between them, Enter or Space places a mark, and number keys 1–9 play a square directly.

Common use cases

  • Settle something with the person next to you — two-player mode shares one screen and one board, with X always moving first.
  • Practise fork patterns against a beatable opponent: Medium blocks the obvious three-in-a-row but never sees a double threat coming.
  • Review a finished round to see where a missed block or fork changed the result.

Frequently asked questions

How do you win at tic tac toe?

Get three of your marks in a straight line. On a 3x3 board there are exactly 8 ways to do it — 3 rows, 3 columns and 2 diagonals — and this game checks all 8 after every single move, then highlights the line that won. Taking the centre square first is the strongest opening, which is why the computer grabs it on Medium when nothing more urgent is available.

Link to answer
Can you beat the computer at tic tac toe?

On Easy and Medium, yes. Easy plays a uniformly random open cell, and Medium only looks one move ahead: it takes an immediate win, otherwise blocks your immediate win, otherwise takes the centre. Because it never searches deeper, it can fall for a classic fork (two winning threats at once, and it can only block one); after the centre it plays a random cell, so the fork works only some of the time. Hard searches the whole game tree, so the best you can do there is a draw.

Link to answer
Is this tic tac toe game free, and do I need to sign up?

It is free with no account, no download and no in-game purchase. The entire game is a client-side React component — the board, the win check and the computer's moves all run on your own device, and no move data leaves your browser.

Link to answer
Can 2 people play tic tac toe on the same device?

Yes. Choose "Two players" under Round settings and take turns on one screen. X always moves first, the header shows whose turn it is, and a filled cell ignores taps so you cannot overwrite a mark by mistake. In "Vs computer" mode you are X and the computer plays O, replying after a 420 ms pause.

Link to answer
Does the game save my score?

Yes, on this device. The X wins, O wins and draws tally is saved in your browser's local storage (never sent to a server), so it survives a reload. Restart Game clears the board and advances the round while keeping the tally; Reset Score wipes the tally and returns to round 1.

Link to answer
Can I undo or review moves in tic tac toe?

Undo move removes the last mark in two-player mode. Against the computer it takes back your last move and the computer’s reply if one was played. After a win or draw, select Review moves to step through the round with the score preserved.

Link to answer
How do I find a missed block in Tic-Tac-Toe?

After a win or draw, choose Review moves and select a numbered move to jump to it. The board highlights that square, and the note identifies cells where an immediate win was left open, where a threat was blocked, or where a fork appeared.

Link to answer
Why does tic tac toe always end in a draw?

Because 3x3 tic-tac-toe is a solved game: with both sides playing correctly, neither can force a win, so the result is a draw. This game reports that as "Round ended in a draw" the moment all nine cells are filled and none of the 8 winning lines match. Wins happen when someone misses a block or fails to spot a fork.

Link to answer
Can I play tic tac toe with the keyboard?

Yes. Tab into the board, then use the arrow keys to move between the nine squares and Enter or Space to place your mark; number keys 1-9 play a square directly (1 is top-left, 9 is bottom-right). Every cell carries a spoken label such as "Cell 5, empty" or "Cell 5, Player X", and the mode toggles report their pressed state.

Link to answer