Play Tic-Tac-Toe — Free

Classic noughts and crosses against the computer. You're X, the computer is O — line up three to win.

Your turn — you're X.

You
0
Draws
0
CPU
0

What is Tic-Tac-Toe?

Tic-Tac-Toe — also known as noughts and crosses — is a two-player game played on a simple 3×3 grid. One player uses X and the other uses O, and the two sides alternate turns, each dropping a single mark into any empty square. The goal is to be the first to line up three of your own marks in a straight line, whether that line runs horizontally across a row, vertically down a column, or diagonally from corner to corner. The rules take seconds to learn, which is exactly why the game has stayed a playground and coffee-break favourite for generations. Here on vygam you play as X against a computer opponent that answers with O.

The game is far older than it looks. A version with three counters per side, called "terni lapilli," was already being scratched into stone by the ancient Romans, making Tic-Tac-Toe one of the oldest known games in the world. It is also a "solved" game: mathematicians have mapped out every possible position, and the conclusion is that when both players make no mistakes the match always ends in a draw. That tidy little fact is what makes Tic-Tac-Toe such a good first taste of real strategy — the board is small enough to reason about completely, yet it still teaches you to spot threats, plan a move ahead, and think about what your opponent will do next.

How to Play

1You always play first as X. Tap any empty square.
2The computer answers as O.
3Get three in a row — horizontally, vertically or diagonally.
4Try Easy to win, or Unbeatable to chase a perfect draw.

Tic-Tac-Toe Tips & Strategy

Because the board is so small, a handful of simple habits will turn you from an easy target into a player who is very hard to beat. Master these four ideas and you'll start forcing draws against strong opponents — and punishing the weak ones.

  1. Grab the center whenever it's open

    The middle square is the single most valuable spot on the board because it belongs to four of the eight possible winning lines — both diagonals plus the central row and column. Claiming it early gives you the most ways to build a threat and lets you sit in the path of most of your opponent's plans. If you get to move first and the center is empty, taking it is rarely a mistake.

  2. If the center is taken, head for a corner

    When the middle is already gone, a corner is your next best target. Each corner sits on three winning lines — one row, one column and one diagonal — while a plain edge square touches only two. Corners give you more room to create threats and are the squares experienced players fight over, so reach for them before you ever settle for an edge.

  3. Build a fork to create a double threat

    A fork is a single move that opens two separate winning lines at the same time. Your opponent can only block one of them per turn, so the other line lets you complete three in a row on your next move. Watch for positions where two of your marks quietly share an empty square, set up the fork, and the win becomes unstoppable — while staying alert so your opponent can't fork you first.

  4. Block a two-in-a-row immediately

    Defence comes before ambition. The moment your opponent has two of their marks on a line with the third square still empty, they are one move from winning — so you must drop your mark into that open square right away, unless you can complete three in a row yourself on the very same turn. Missing an obvious block is the fastest way to hand away a game you could have drawn.

The game theory behind Tic-Tac-Toe

To a game theorist, Tic-Tac-Toe is famous for being completely "solved". A solved game is one whose every possible position has been analysed all the way to the end, so the best outcome for each side is known in advance. For Tic-Tac-Toe the verdict is clear and a little humbling: if both players make no mistakes, the game is always a draw. Once you account for symmetry there are only a few hundred meaningfully different games to examine — small enough that the entire decision tree can be mapped out by hand or by a simple computer routine. That is why it works so well as a teaching example: it is the smallest arena in which you can see, with total certainty, that "perfect play" is a real, reachable thing rather than a vague ideal, and that no clever trick can beat an opponent who never slips.

Perfect play rests on two ideas. The first is control of the centre: the middle square lies on four of the eight winning lines, so seizing it gives you the most ways to threaten and the strongest position from which to block. The second is the fork — a single move that opens two separate winning threats at once. Because your opponent can only answer one threat per turn, a successful fork guarantees a win on the move that follows. A player who takes the centre when it is offered, always blocks an immediate three-in-a-row, and hunts for forks while denying the opponent one can never be beaten; the very worst result they will ever suffer is a draw. Every loss in Tic-Tac-Toe, then, is really a gift — clear proof that someone strayed from the perfect path.

FAQ

Is Tic-Tac-Toe free to play?

Yes — Tic-Tac-Toe on vygam is completely free. There is no download and no sign-up; it plays instantly in your browser.

Can you win against the Unbeatable computer?

No. On Unbeatable the computer uses the minimax algorithm and plays perfectly, so the best you can force is a draw. Switch to Easy for a beatable opponent.

Can you always win at Tic-Tac-Toe?

No. Tic-Tac-Toe is a solved game, so against an opponent who plays perfectly the best result you can force is a draw. You only win when the other side slips up and leaves a line open — a win really reflects their mistake rather than any flaw in the game. That is also why two careful players almost always end level.

What is the best first move in Tic-Tac-Toe?

The center is the strongest opening square because it sits on four of the eight winning lines and keeps the most options open. If the center is already taken, a corner is the next best choice, since each corner still belongs to three winning lines while an edge belongs to only two.

What is a fork in Tic-Tac-Toe?

A fork is a single move that creates two winning threats at once. Because your opponent can only block one line per turn, the other line lets you complete three in a row and win. Setting up a fork — while making sure your opponent cannot fork you first — is the key to beating anyone who plays less than perfectly.

Games like Tic-Tac-Toe