Tic-Tac-Toe is small enough that you can learn it completely. There are nine squares and eight possible lines, and with careful play from both sides the game always ends level. That sounds dull, but it means every single win comes from a mistake, and the fun is in setting traps that make your rival slip.
This guide walks through how our version runs, which openings set the most traps, the replies that keep you safe when you move second, and how each of the three computer levels chooses its square. By the end you should be able to beat Easy and Normal often and never lose to Hard.
How a game runs here
Player 1 is X in blue and Player 2 is O in orange. When you play the computer you are always Player 1 and the Bot is always Player 2. That does not mean you always start, though. The first move alternates every game, so in game one you open, in game two the Bot opens, and so on. If you switch modes or levels, the tally resets and you are back to opening the first game.
The Bot waits a short moment before it moves, somewhere between about half a second and just under a second, so you can watch where it goes. A finished line gets a strike drawn through it and a little burst of confetti, and the win or draw is added to the counter under each player's chip. The board takes clicks, taps or the keyboard, so it works the same on a phone, a tablet or a laptop.
The eight lines and why squares are not equal
Every win is one of eight lines: three rows, three columns and two diagonals. Count how many of those lines pass through each square and you get the whole theory of the game. The middle square sits on four lines, each corner on three, and each edge square on just two. A square on more lines gives you more ways to build threats and more ways to block your rival with a single mark.
That simple count explains why strong players rarely open on an edge. An edge does not lose by force, but it gives the other player the easiest game. Corners are the sneaky choice because they set the most traps for a rival who replies badly. The middle is the solid choice because it touches the most lines and leaves the fewest ways to go wrong.
Openings that set traps when you go first
The corner opening is the best one for winning games against people and weaker bots. Out of the eight squares left, only the middle is a safe reply. If your rival takes any edge or any other corner, you can force a win. For example, after a corner and an edge reply, take the middle next. Your rival must block the diagonal, and that block usually lets you make a second threat that they cannot cover.
The middle opening is safer but sets fewer traps. If your rival replies on an edge, you can force a win by taking a corner that shares no line with their mark, then building two threats at once. If they reply in a corner, the game should end level, but you can still test them. Take the corner opposite theirs. Now if they get nervous and play a corner instead of an edge, you get a fork.
A good habit when you move first is to keep asking what the most natural reply would be and whether it loses. Many casual players answer a corner with the opposite corner or a nearby edge, and both of those lose. Against the Easy and Normal Bot, opening in a corner gives you the most chances.
Staying safe when you move second
Moving second, your only job early on is not to lose. Two simple rules cover almost everything. If the first mark goes in a corner, take the middle. If it goes in the middle, take a corner. If it goes on an edge, the middle is the easiest answer, though a neighbouring corner or the opposite edge also holds.
The famous trap to watch for comes after corner, middle, then the opposite corner. You now have the middle and your rival has two corners on the same diagonal. It looks natural to grab a third corner, but that hands them a fork. The correct move is any edge square, which forces them to block you, and from there the game should stay level.
The other trap is two marks that form an L shape around you, such as a corner and the edge square two steps away. Here the safe square is the corner that sits on both of the lines they are building. Taking it removes their fork before it exists, and from there you only need to keep blocking single threats.
Forks: the only way anyone wins
A fork is one mark that creates two lines of two at once, each with an open third square. Your rival can only fill one of them, so you win on the next turn. Since good players always take a win and always block a single threat, a fork is really the only way to beat someone who is paying attention.
The most common fork shape uses three corners. Once you own two corners that share a side, and the square between them is empty, a third corner that lines up with each of them gives two threats. Another shape uses the middle plus two corners. Before every move, run a quick check in this order: can I complete a line, does my rival have two in a line I must block, can I make a fork, and can my rival make a fork next turn that I need to stop now.
That last question is where most games are lost. Stopping a fork often means making a threat of your own in a spot that forces your rival to answer somewhere harmless, rather than just placing a mark on their best square.
How the Easy Bot plays and how to beat it
The Easy Bot does not look ahead at all. When it has a winning square, it takes it only about 60 percent of the time. If it skipped that or had no win, it blocks your open line only about 40 percent of the time. Otherwise it drops its mark on a random empty square.
That makes Easy very beatable. You do not even need a fork. Line up two in a row and there is a good chance it will look the other way. Still, it is worth practising your forks here, because a fork wins every time no matter how the dice fall. When the Bot opens, its first mark is random, so you will see plenty of edge openings. Answer them with the middle and look for a quick double threat.
How the Normal Bot plays and how to beat it
The Normal Bot always takes a winning square when it has one and always blocks your line of two. It never misses those. When there is nothing urgent on the board, it rolls the dice: about three times in ten it puts its mark on a random empty square, and the rest of the time it plays a perfect move found by searching the whole game.
So the plan against Normal is to keep making quiet positions where nothing is urgent and hope for one of those random moves. Open in a corner. If the Bot replies anywhere except the middle, go for the win. If it does take the middle, play on calmly and keep giving it chances to drift. A single loose move from Normal is usually enough for you to set up a fork, and it cannot defend a fork any better than a person can.
How the Hard Bot plays and why a draw is a good result
The Hard Bot first checks for a win or a block, then tries every possible way the rest of the game could go before choosing. It scores a win higher the sooner it comes and a loss lower the sooner it comes, so it always grabs the fastest win and drags out any game it cannot win. When several squares are equally good, it picks one of them at random.
That last detail matters. From an empty board every square leads to a draw with perfect play, so the Hard Bot's opening is a random square, edges included. It does not try to set traps for you, it only avoids losing. You cannot beat it, but you can make it think about every move. Keep using the safe replies from the section above and you will draw every game. In 2 Players mode or online with a friend, the same traps that fool the Normal Bot work on people too, so practise them until you spot them without counting lines.
Playing a friend online or on one screen
On one screen, 2 Players mode simply passes the turn back and forth, and the first move swaps each game so nobody gets a permanent head start. Keep a running score over five or ten games, since single games between careful players tend to be draws.
To play someone on their own device, press Play online at the top, host a party, send your friend the code and pick Tic-Tac-Toe. No account is needed. Each of you sees the board on your own screen, and the board ignores your taps while it is your friend's turn. If you like this kind of quick duel, Four in a Row and Five in a Row on this site use the same idea on bigger boards.
