Guides

Tic Tac Toe Strategy: How to Beat the Easy, Medium and Hard Bots

How the Easy, Medium and Hard bots in Gipcus Tic Tac Toe really play, the corner-and-fork plan that wins 92.7% vs Medium, and how to draw the unbeatable Hard bot every time.

Tic tac toe board showing a fork: X in top-left, middle-left and centre threatens two winning lines at once

Quick answer: To win at Tic Tac Toe on Gipcus, open in a corner and build a fork, which is two threats at once. That beats the Easy bot 99.5% of the time and the Medium bot 92.7%. The Hard bot is perfect and can’t be beaten. Block every two-in-a-row and you’ll draw every game.

By Ashish Sharma · Updated October 28, 2026 · How we tested: we read the code of the Tic Tac Toe build on our game page, including all three bots and the streak counter. Next, we rebuilt the bots in Python and checked our Hard bot against the game’s own JavaScript on all 2,097 positions where the bot has to move. They matched every time. Then we solved every line exactly and played 10,000 test games against each bot.

How does Tic Tac Toe on Gipcus work?

It’s classic 3×3 noughts and crosses. Get three in a row across, down or diagonally to win. A full board with no line is a draw. Against the computer, you are always X and you always move first. The bot replies about half a second later.

Mode What it is What the code does
Single player: Easy bot You vs the computer Picks a random empty square every turn
Single player: Medium bot You vs the computer Wins if it can, otherwise blocks your two-in-a-row, otherwise plays a random square
Single player: Hard bot You vs the computer Full minimax search of every possible game. It never loses.
2 players (local) Two people on one device Player 1 is X, Player 2 is O. You take turns tapping squares.
Multiplayer (online) Matchmaking through the game’s server If the server fills a match with a bot, the code sets that bot to Hard. It waits a random 0.5 to 2.5 seconds before each move.

What are the controls?

You only need one input: click or tap an empty square.

Action Desktop Phone / tablet
Place your mark Click an empty square Tap an empty square
Play again Replay button after the result Same
Change bot Back button, then pick Easy, Medium or Hard Same
Sound Speaker button Same

How does the win streak work?

Short answer: on Easy and Medium, only wins count and a draw resets your streak. On Hard, a draw adds 1 to your streak. Only a loss resets it.

The game keeps a current streak and a best streak for each bot level, and saves them in your browser. This is straight from the scoring code:

Bot Win Draw Loss
Easy +1 Streak back to 0 Streak back to 0
Medium +1 Streak back to 0 Streak back to 0
Hard +1 (can’t happen) +1 Streak back to 0

So on Hard, a long streak just means a long run of games without a loss. If you clear your browser data or open a private window, your streaks start again from 0.

Can you beat the Hard bot?

No. The Hard bot plays perfect tic-tac-toe, and perfect play from both sides always ends in a draw. Your best result is a draw, which still counts toward your streak.

The Hard bot checks every way the game could go before each move. We tested every possible sequence of human moves against it. There are 681 of them: 0 wins, 183 draws and 498 losses for the human. If you click at random, you lose 80.6% of games and draw the other 19.4%.

The Hard bot always plays the same way. When several moves are equally good, it picks the lowest-numbered square (reading left to right, top to bottom). That means it always gives the same reply to the same move. These are its first replies:

Your first move (X) Hard bot replies Second moves that lose by force
Any corner Centre None. Keep blocking and you draw.
Centre Top-left None. Keep blocking and you draw.
Top-middle Top-left Top-right, middle-right, bottom-middle
Middle-left Top-left Middle-right, bottom-left, bottom-middle
Middle-right Top-right Middle-left, bottom-middle, bottom-right
Bottom-middle Top-middle None. Keep blocking and you draw.

How do you never lose against the Hard bot?

Open in a corner or the centre, then block every time. Here’s the full drawn game we used in testing:

  1. You take top-left. The bot takes the centre.
  2. You take the opposite corner, bottom-right. The bot takes top-middle and now threatens the middle column.
  3. You block at bottom-middle. The bot takes bottom-left and threatens the diagonal.
  4. You block at top-right. The bot takes middle-right and threatens the middle row.
  5. You block at middle-left. The board is full: draw, and your Hard streak goes up by 1.

Opening in the centre also draws. The bot takes top-left, you take bottom-right, and then you block each threat as it comes. Every turn, check these in order: can I win? Can it win next turn? Will my move set up a fork for it?

How do you beat the Medium bot?

Short answer: open in a corner and make a fork. Medium only looks one move ahead. It takes a win or blocks a single threat, but it can’t see a fork coming. With the best play, you win 89 of every 96 games (92.7%) and never lose.

  1. Open in a corner, for example top-left. Corner openings win 92.7%, edges 84.9% and the centre 83.3%.
  2. If the bot doesn’t take the centre (7 games in 8), you can force a win. For example, if it takes top-middle, play middle-left. It has to block at bottom-left. Then take the centre, which threatens both the diagonal and the middle row. It can block only one.
  3. If it takes the opposite corner (bottom-right), take top-right. It blocks top-middle. Take bottom-left. It blocks middle-left. Then take the centre to win on the other diagonal.
  4. If the bot takes the centre (1 game in 8), play a “knight’s move” edge: middle-right or bottom-middle, if you opened top-left. This wins 5 in 12 of those games, and the bot’s random replies hand you the fork. The opposite corner wins only 1 in 3. Any other move leads to a sure draw.
  5. Never leave your own two-in-a-row open. Medium checks for its own win first, so it won’t miss one.

How do you beat the Easy bot?

Play the same way as against Medium. The Easy bot doesn’t even block, so a corner opening plus taking every open win gives you 191 wins in 192 games (99.5%) with best play. In our 10,000-game test, we won 9,948 and drew 52. Even clicking at random beats Easy 58.5% of the time, but random play also loses 28.8%. That’s why the fork plan matters if you want a long Easy streak.

What are the win rates against each bot?

These come from exact solving, with a 10,000-game test run to check them. You move first in every game.

Bot Best play: win / draw / loss 10,000-game test (W / D / L) Random clicking: win / draw / loss
Easy 99.5% / 0.5% / 0% 9,948 / 52 / 0 58.5% / 12.7% / 28.8%
Medium 92.7% / 7.3% / 0% 9,265 / 735 / 0 6.1% / 23.9% / 70.0%
Hard 0% / 100% / 0% 0 / 10,000 / 0 0% / 19.4% / 80.6%

How do you play second in 2-player mode?

As O, your only goal for the first two moves is not to fall into a fork. Our solver confirmed these replies:

X opens… Safe replies for O Everything else
A corner Only the centre Loses against good play
The centre Any corner Any edge loses
An edge (e.g. top-middle) Centre, either corner next to it, or the opposite edge The two far corners and the side edges lose
Corner, you take centre, X takes the opposite corner Any edge Either remaining corner loses

Across all 255,168 possible tic-tac-toe games, X wins 131,184, O wins 77,904 and 46,080 end in a draw. We counted them ourselves. Going first is a real edge against a human who makes mistakes.

Frequently asked questions

Is Tic Tac Toe free on Gipcus?

Yes. It runs in your browser on desktop and phone, with no download and no sign-up.

Can I go second against the computer?

No. In single player you are always X and you always move first, even when you press Replay. To practise as O, use the 2-player mode with a friend.

Is the Hard bot really unbeatable?

Yes. It runs a full minimax search. We tested all 681 possible human move sequences against it and none of them won. The best you can do is draw, and draws add to your Hard streak.

Why didn’t the Hard bot take an instant win?

It doesn’t care how fast it wins. If two moves both win by force, it picks the lower-numbered square. Of the 447 positions it can reach, there are 33 where it skips an instant win. It still wins those games a move or two later.

What is the best first move in tic-tac-toe?

A corner. Every first move draws with perfect play. But after a corner, 7 of the opponent’s 8 replies lose by force. Against the Medium bot, a corner wins 92.7% of games, compared with 83.3% for the centre.

What is a fork?

A fork is one move that makes two different two-in-a-rows at once. The opponent can block only one, so you win with the other. Nearly every win against the Medium bot comes from a fork.

Does my streak save?

Yes. Your current and best streaks for each bot are saved in your browser. Clearing site data, using a private window or switching devices resets them.

Why does the Medium bot sometimes play badly?

When it has nothing to win or block, it picks a random empty square. That’s why it often doesn’t take the centre after your corner, and why the fork plan works so well.

More board and strategy guides

Play now: Tic Tac Toe on Gipcus, free in your browser.

Play now

See all

Keep reading

See all