What tic tac toe is
Tic tac toe, also called noughts and crosses or X and O, is a game for two on a grid of three by three squares. One player draws X, the other O, and they take turns marking an empty square. The first to line up three of their marks in a row, across, down or diagonally, wins. If all nine squares are filled with no row, the game is a draw. There is no luck: both players see everything, so the sharper player wins or, if both play well, nobody does.
Playing tic tac toe on AllFun
AllFun Tic-Tac-Toe has two boards: Classic 3×3, three in a row, and Big 5×5, where you need four in a row and the game lasts longer. The computer comes in four levels, Easy, Medium, Hard and Master. With 2 Players you pass one phone between you, and Play Online or Play with a friend puts each of you on your own screen.
Tap or click an empty cell to play it. The winning row lights up with a gold line, and the end card shows the finished board. Against the computer you get three hints and three undos in every game, and the home screen keeps your record and your longest winning streak at each level.
The rules
Taking turns
- The player who starts plays X; the other player plays O.
- On your turn, put one mark in any empty cell. You cannot move or remove a mark once it is down.
- On AllFun, who starts changes from one game to the next, so both players get to go first.
Winning and drawing
Three of your marks in a straight line wins on the Classic board: one of the three rows, the three columns or the two diagonals. On the Big board you need four in a row in any of those directions. A full board with no line is a draw.
Tips that win games
- Start in the centre. The centre is part of four winning lines, more than any other cell. A corner, part of three, is the next best start.
- Answer a centre with a corner. If the other player takes the centre, take a corner. An edge cell next to their centre loses against a careful opponent.
- Block first. Before every move, check whether the other player has two in a row with the third cell empty. If they do, that cell is your move.
- Make a fork. A fork is one move that makes two rows of two at the same time. The other player can only block one, so the other wins. Corner openings often lead to forks.
- See the fork coming. When you hold the centre and they hold two opposite corners, play an edge, not a corner: it forces them to block you instead of forking.
- On the Big board, build in the middle. With four in a row to make, open-ended lines of two and three in the middle of the board are worth the most, and blocking early matters more than on 3×3.
A short history
Games of three in a row on a small grid are very old; versions where each player moves a few counters are thousands of years old. The pencil and paper game came much later and spread through schoolrooms everywhere. In 1952 a game called OXO, one of the very first computer games, played noughts and crosses on a room-sized computer, and the game has been a first exercise for programmers ever since. With perfect play from both sides, every game of tic tac toe ends in a draw.
Tic tac toe FAQ
What is the best first move?
The centre. It is on four winning lines and gives the most chances for a fork. A corner is almost as good, and against a beginner it sets the most traps.
Can you always win at tic tac toe?
No. If both players make no mistakes, the game is always a draw. You win by spotting a fork the other player missed, or by making one they cannot block.
Can I beat the Master level?
Not on the Classic board: Master plays perfectly there, so a draw is the best result. On the Big board, with four in a row to make, it is strong but not perfect.
Can I play a friend online?
Yes. Tap Play with a friend, then Create the invite, and send your friend the link or the five-character code. They can join from any browser without an account.
Ready for a game? AllFun Tic-Tac-Toe is free and opens right here in your browser.
Play Tic-Tac-Toe


