Tic-Tac-Toe

Play vs an unbeatable AI.

Updated
Loading tool…

Play vs an unbeatable AI.

Press start to play — no sign-up, nothing to install.

How to use Tic-Tac-Toe

  1. Choose two-player mode or the unbeatable computer opponent
  2. Tap squares on the 3x3 grid to place your marks
  3. Watch it detect the win or draw and update the scoreboard
Try next →SudokuClassic number puzzle.

About Tic-Tac-Toe

Tic-tac-toe is the classic pen-and-paper game where two players take turns marking X and O on a 3x3 grid, and the first to line up three in a row — across, down, or diagonally — wins. This version brings that whole game into your browser, with no app to install and no need to search Google to find a board. Tap an empty cell to place your mark, and the game instantly checks every row, column, and diagonal, calls the win or draw, and highlights the winning line so there's no arguing over who got three in a row.

You can play two ways. Pick 2 Players to pass one phone, tablet, or laptop back and forth with a friend, with X always going first. Or switch to 1 Player to face the computer, which runs the minimax algorithm and plays a mathematically perfect game — the most you can pull off against it is a draw. In 1 Player mode you also choose whether you play as X and move first or as O and let the computer open. A running scoreboard tallies X wins, O wins, and draws across every round, so you can keep a series going; New Game clears the board, and Reset Scores wipes the tally.

Everything happens on your device. There's no sign-up, no ads to click through, and none of your moves or scores are ever uploaded to a server.

Frequently asked questions

Is this tic-tac-toe game free to use?
Yes, it is completely free. There is no sign-up, no account, and no limit on how many games you can play. Just open it and start playing.
Is this the same as the tic-tac-toe game on Google?
It plays just like the game that pops up when you search "tic tac toe" on Google — the same X and O on a 3x3 grid, playable right in the browser. The main difference is that our computer opponent is set to play perfectly, so there is no easy setting; you are always up against a flawless player unless you switch to 2-player mode.
What are the rules of tic-tac-toe?
Players alternate placing their mark on the 3x3 board, with X going first. The goal is to get three of your marks in a straight line — horizontally, vertically, or diagonally. If all nine squares fill up with no line, the game is a draw. The tool enforces these rules and calls the result for you.
How big is the tic-tac-toe board?
It uses the standard 3x3 grid, nine squares in total. That is the board every classic tic-tac-toe game is played on, and it is what you get here.
Can I really beat the computer opponent?
No, you cannot beat it. The computer uses the minimax algorithm and always plays the mathematically perfect move. The best possible outcome against it is a draw, which happens if you also play flawlessly.
Is there a trick to never losing at tic-tac-toe?
When both players play perfectly, tic-tac-toe always ends in a draw, so you cannot force a win against flawless play — but you can avoid losing. Take the center or a corner on your first move and always block your opponent whenever they have two in a row. That is exactly the strategy the computer here uses.
How do I play against a friend instead of the computer?
Use the Mode dropdown and choose 2 Players. Then you and a friend take turns tapping cells on the same screen, with X always going first.
Can I choose to play as O or go second?
Yes. In 1 Player mode, use the 'You play as' dropdown to pick X and go first, or O and let the computer move first.
Does the game keep score across multiple rounds?
Yes. The scoreboard tracks wins for X, wins for O, and draws, and it keeps counting across rounds. Use New Game to start a fresh board, or Reset Scores to clear the tally.
Can I play tic-tac-toe on my phone?
Yes. The game works in any modern mobile or desktop browser, and cells respond to taps, so passing a phone back and forth in 2-player mode works well. You can bookmark the page to jump straight back in without searching each time.
Is my data uploaded or stored anywhere?
No. The entire game runs locally in your browser. Your moves, the scoreboard, and everything else stay on your device and are never sent to any server.