Play Tic-Tac-Toe Online for Free
Tic-tac-toe is the three-mark duel everyone learns first and few ever truly master, because mastery here means never losing rather than always winning. On Classic Play Games you take X or O on a 3x3 grid and race to line up three of your marks across a row, column, or diagonal. X moves first, every square is up for grabs, and a single careless reply can hand your opponent a fork. Face an AI that ranges from forgiving to flawless, or pass the device to a friend.
How to Play Tic-Tac-Toe
Tic-tac-toe is played on a 3x3 grid of nine empty squares. The two players are X and O, and X always moves first. Players alternate, each placing one mark on any empty square per turn. You cannot move or remove a mark once it is placed, and you cannot overwrite an occupied square, so the board only ever fills up.
You win the instant you complete a line of three of your own marks. A line can run horizontally across any of the three rows, vertically down any of the three columns, or diagonally from corner to corner. The engine checks for this win the moment a mark lands, so the game ends on the move that completes the three, not at the end of the round.
If all nine squares are filled and neither player has made a line of three, the game is a draw. There are no captures, no second placements, and no special squares — every cell is equal. Against the engine's top setting the computer evaluates the position perfectly, so the only results you will ever see there are a draw or a loss for whoever blundered.
How to Never Lose at Tic-Tac-Toe (and Punish the AI's Mistakes)
Tic-tac-toe is a solved game: with correct play by both sides it is always a draw, so your real goal is to stop losing and then pounce only when the opponent slips. As X, the strongest first move is the center — it sits on four of the eight possible lines, more than any other square. As O, your reply to a center opening must be a corner; answering in an edge is the classic losing mistake that lets X build a fork. If X opens in a corner instead, O's only fully safe reply is to take the center.
The winning weapon is the fork: a single move that creates two separate three-in-a-row threats at once, because your opponent can only block one. The most famous trap starts with X in a corner; if O answers in an edge or the wrong corner, X can set up two open lines and force a win. Whenever you place a mark, ask whether it threatens two lines — and whether your opponent's last move is quietly setting one up against you.
Defense has a strict priority order on every turn. First, if you can complete your own three, take the win immediately. Second, if your opponent has two in a row with the third square open, block it. Only when neither applies should you build your own threats, favoring squares that lie on the most unfinished lines. Following this order alone is enough to draw against perfect play.
This game's AI uses minimax search, so the Hard level plays perfectly — it will never let you win and will instantly punish a non-optimal move, making a draw your best realistic outcome. Easy and Medium deliberately blunder a fraction of the time (Easy far more often), randomly tossing away a good square. Against those settings, keep setting up forks and stay alert: their random slip is your only opening, and you must convert it before they recover.
Frequently Asked Questions
Does X or O have an advantage in tic-tac-toe?
X has a small practical edge because X moves first and the center square lies on more winning lines than any other. With perfect play that edge still only produces a draw, but against an imperfect opponent X gets the first chance to build a fork, so the first player wins more of the games that aren't drawn.
Why does the game force a draw every time on Hard mode?
The Hard AI runs a full minimax search with alpha-beta pruning, meaning it looks ahead to the end of every line and always chooses an optimal move. Since tic-tac-toe is a solved game where best play draws, a perfect computer can never be beaten — it will only ever draw you or win if you make a mistake.
What is a fork and how do I create one?
A fork is one move that creates two three-in-a-row threats simultaneously. Your opponent can block only one, so the other wins. You build a fork by placing a mark at the intersection of two of your own partially-completed lines — classically by combining a corner and the center, or two corners that share an empty edge.
If I go first and take a corner, can I force a win?
Only if your opponent replies incorrectly. A corner opening sets a trap: if the second player answers on an edge or the wrong corner, you can force a fork and win. The opponent's single saving reply is to take the center — do that and the game returns to a draw with best play.
Can a tic-tac-toe game ever be unwinnable for both players?
Yes. Many games legitimately end in a draw, also called a cat's game, when all nine squares fill with no line of three. The engine declares a draw the moment the board is full without a winner. Whenever both players block each other's threats correctly, a filled board with no winner is the natural result.