History & Origins
Tic-Tac-Toe (known as Noughts and Crosses in Britain) is one of the oldest and most universal games, with roots stretching back over 3,000 years. Ancient Egyptians played a similar three-in-a-row game around 1300 BCE. The Romans had "Terni Lapilli," and variations appear throughout history across cultures worldwide.
The modern 3x3 grid version became standardized in the 19th century. The name "Tic-Tac-Toe" comes from a 16th-century British game where players threw pencils at a slate marked with numbers, though the connection to the modern game is unclear.
Despite its simplicity, Tic-Tac-Toe holds an important place in game theory and computer science. It was one of the first games to be completely analyzed mathematically and one of the first programmed onto computers. In 1952, OXO (also known as Noughts and Crosses) became one of the first video games ever created, running on the EDSAC computer at Cambridge University.
The game serves as an excellent introduction to strategic thinking for children and a teaching tool for concepts like game trees, minimax algorithms, and optimal play in computer science courses. While trivial for adults, it remains a beloved childhood game played on paper, in the dirt, and digitally by millions worldwide.
Complete Rules
Tic-Tac-Toe is played on a 3x3 grid. Two players take turns marking spaces, one using X and one using O.
Setup: Draw a 3x3 grid (like a # symbol). Decide who plays X and who plays O. X traditionally goes first.
Taking Turns: On your turn, mark one empty square with your symbol (X or O). You cannot mark an already-occupied square.
Winning: Get three of your symbols in a row to win. The row can be horizontal (any row), vertical (any column), or diagonal (either diagonal). The game ends immediately when someone gets three in a row.
Drawing: If all nine squares are filled and neither player has three in a row, the game is a draw (sometimes called "cat's game").
First Player: The first player (X) has a slight advantage. With perfect play from both sides, the game always ends in a draw. However, if X plays perfectly and O makes a mistake, X wins. If O plays perfectly and X makes a mistake, O can sometimes win.
Notation: Squares are sometimes numbered 1-9 (left to right, top to bottom) or using coordinates (like A1, B2, C3). This helps record or communicate moves.
Strategy Guide
While Tic-Tac-Toe is "solved" (perfect play results in a draw), most people don't play perfectly. Here's how to always win or draw:
For X (First Player): The center is the strongest opening. It controls the most winning lines (4 of 8). If O doesn't take a corner, you can create a fork (two ways to win) that guarantees victory.
Opening in the Center: If X takes center and O takes an edge, X can guarantee a win. If O takes a corner, X must play carefully but can still force at least a draw.
Opening in a Corner: Corner openings are nearly as strong as center openings. They create trapping possibilities if O responds incorrectly.
For O (Second Player): If X takes center, take a corner. If X takes a corner, take the center. If X takes an edge, take the center. These responses prevent X from creating immediate forks.
The Fork: A fork is a position where you have two ways to win on your next turn. Your opponent can only block one, so you win. Creating forks is the key to winning; preventing them is the key to not losing.
Block First: If your opponent has two in a row with an empty third space, you must block immediately. A failure to block an obvious threat loses the game.
Common Fork Setups: X in center and opposite corners creates a fork if O plays edges. X in corner followed by opposite corner (if O doesn't take center) creates a fork.
Perfect Play: With perfect play, every game is a draw. X's first move should be center or corner. O's response depends on X's move. From there, always block threats and never miss a winning opportunity.
Popular Variations
Tic-Tac-Toe has inspired numerous variations:
Ultimate Tic-Tac-Toe: A 3x3 grid of Tic-Tac-Toe boards. Your move determines which board your opponent must play in. Win three small boards in a row to win. Much deeper strategy than the original.
3D Tic-Tac-Toe: Played on a 4x4x4 cube (64 spaces). Get four in a row in any direction, including diagonals through the cube. Significantly more complex.
5x5 Tic-Tac-Toe: Larger grid, still need three in a row. More options, harder to force draws. Sometimes played with four-in-a-row requirement.
Gomoku: Get five in a row on a 15x15 or 19x19 board. A serious strategy game with professional play, particularly in Asia.
Misere Tic-Tac-Toe: The player who gets three in a row LOSES. Completely reverses optimal play. X can actually force a win with this ruleset.
Wild Tic-Tac-Toe: On your turn, you can place either an X or an O. The player who completes a row wins regardless of which symbol forms it.
Numerical Tic-Tac-Toe: Numbers 1-9 instead of X/O. Each number used once. Make any row sum to 15. Isomorphic to regular Tic-Tac-Toe with a magic square.
Notakto: Both players use X. The player who completes any three-in-a-row LOSES. Multiple boards played simultaneously.
Tic-Tac-Toe on a Torus: The board wraps—top connects to bottom, left to right. Creates new winning lines that wrap around edges.
Frequently Asked Questions
Ready to play Tic-Tac-Toe?
No signup required. Share a link and start playing instantly.