Tic-Tac-Toe
Free · No sign-up · Your files never leave your browser
Free, no sign-up — play as X against the computer, first to three in a row wins.
Tic-Tac-Toe — also called noughts and crosses, or simply X and O — is the pencil-and-paper game almost everyone learns as a child. Two marks take turns on a three-by-three grid, and the first to place three in a row, across, down or diagonally, wins. This online version keeps the game exactly that small and honest: you play X, the computer plays O, and a fresh game is always one click away. There is nothing to install, nothing to sign up for, and no settings screen standing between you and the board. Open the page, tap a square, and the game is under way.
Tic-Tac-Toe
You are X — beat the computer (O)!
Free, no sign-up — play as X against the computer, first to three in a row wins.
Everything runs in your browser — your moves are never uploaded.
Your turn!
Single-player only: you always play X and move first, and the computer always plays O. The computer takes a win when it sees one and blocks your win when it sees one, but it has no fork defence — create two threats at once and you beat it. There is no two-player mode, no score keeper and no difficulty setting.
Tic-Tac-Toe — also called noughts and crosses, or simply X and O — is the pencil-and-paper game almost everyone learns as a child. Two marks take turns on a three-by-three grid, and the first to place three in a row, across, down or diagonally, wins. This online version keeps the game exactly that small and honest: you play X, the computer plays O, and a fresh game is always one click away. There is nothing to install, nothing to sign up for, and no settings screen standing between you and the board. Open the page, tap a square, and the game is under way.
That simplicity is the point: it suits a spare minute, a quick challenge between lessons, or showing a child the classic game before the pencil-and-paper version.
Your files never leave your device
No uploads, no queues, no waiting
No account, no card, nothing to install
How to use the Tic-Tac-Toe game
- Read the status line. At the start of every game it says "Your turn!", and it keeps you informed for the whole game.
- Tap any empty square. Your X appears in that square in gold. You always play X, and you always move first.
- Wait half a moment for the reply. The computer thinks for a fraction of a second — its move lands after 350 milliseconds — and its O appears in green.
- Keep taking turns. Build a line of three while watching for the computer's threats. Tapping a square that is already filled does nothing; pick an empty one instead.
- Read the result. The status line announces "You win!", "Computer wins!" or "Draw!" as soon as the game is decided, with the matching emoji and colour.
- Click New Game to play again. The board clears, the status returns to "Your turn!", and you start again as X.
Exactly how the game behaves
The board is nine squares, numbered for the code from the top-left corner across each row. After every move, the game checks the eight possible winning lines: the three rows, the three columns and the two diagonals. If all three squares of any line hold the same mark, that mark wins immediately and no further moves are accepted. If all nine squares fill up and no line matches, the result is a draw. A full board that also completes a line counts as a win, not a draw, because the win check happens first.
A click is ignored in three situations: the square is already occupied, the game is already over, or the computer's reply is still pending. That short pause stops fast double-taps from slipping two X marks onto the board in one turn.
Honest limits: how strong is the computer, really?
This section matters, because many game pages dress a simple opponent up as a genius. Ours is not, and here is exactly what it does. The computer follows a fixed four-step recipe, in this order, every single turn. First, it checks whether any empty square wins the game for O at once, and takes it. Second, it checks whether any empty square would win the game for you next turn, and blocks it. Third, if the centre square is free, it takes the centre. Fourth, it picks a random empty corner — or, if no corner is free, a random empty square.
That recipe makes the computer tidy on immediate tactics: it never misses a one-move win, and it never fails to block a single one-move threat. But it is not a minimax player. It never looks more than one move ahead, it plans nothing, and its corner and fallback choices are literally random. Most importantly, it has no defence against a fork: create two winning threats at once and it can only block one square — the other wins you the game. So yes, the computer can be beaten, and beating it is a small puzzle in itself.
One more limit, stated plainly: there is no two-player mode. You cannot pass the device to a friend, play online against another person, choose to play O, or let the computer move first. There is also no score keeper, no difficulty setting and no undo button. What you see is the whole game.
Frequently asked questions
Is this Tic-Tac-Toe game really free?
Yes. Play as many games as you like — no payment, no account, no sign-up and no download. Click New Game whenever you want a fresh board.
Can I play against a friend in two-player mode?
No. This version is single-player only: you always play X and move first, and the computer always plays O. There is no pass-and-play mode, no online opponent and no way to switch sides.
How does the computer choose its moves?
It follows a fixed order. First it takes a square that wins the game at once. Next it blocks a square where you would win next. Then it takes the centre if it is free, then a random empty corner, then a random empty square.
Is the computer unbeatable?
No. It is not a minimax player, it never looks more than one move ahead, and it has no defence against a fork — two winning threats at the same time. It can only block one of them, so a fork beats it.
What happens if I tap a square that is already filled?
Nothing. The move is rejected and the board does not change. The same applies while the computer is replying and after a game has ended — start a new game instead.
How does a game end, and how do I play again?
The status line announces the result — You win, Computer wins or Draw — when a line of three is completed or the board fills with no winner. Click the New Game button to clear the board and play again with you as X.
Related tools
- Converter & Utility Tools — the full converter and utility toolbox on one page, including this Tic-Tac-Toe.
- Free Tools — every free VeloSpark Digital tool in one place.
Built by Umar Hayat — VeloSpark Digital
More Converter & Utility Tools
- QR Code Generator — free QR code generator: turn any link or text into a scannable QR code in seconds.
- Converter & Utility Tools — the full converter & utility toolbox on one page.
- Free Tools — every free VeloSpark tool, guide and category in one place.
