Tic-Tac-Toe (also known as Noughts and Crosses in British English or Tres en raya in Spanish) is a classic paper-and-pencil game for two players. It is a game of perfect information and zero-sum, meaning that if both players follow an optimal strategy, the match will always result in a draw.
- The Grid: The game is played on a simple 3x3 grid.
- The Markers: One player plays as “X” (who traditionally makes the first move) and the other plays as “O”.
- The Objective: Players take turns placing their marker in any empty square. The first player to align three of their markers in a horizontal, vertical, or diagonal row wins the match.
- The Draw: If all 9 squares are filled without either player achieving a row of three, the game ends in a draw (often called a “cat’s game”).
Because Tic-Tac-Toe has only 255,168 unique game outcomes, the mathematical strategy is completely solved. Here is how to guarantee you never lose:
-
If you go first (X): Always open in a corner. This sets up the highest number of traps. If your opponent fails to respond by taking the center square immediately, you can force a “double fork” (creating two winning lines simultaneously), making victory mathematically guaranteed on your next turn.
-
If you go second (O): If the opener chooses a corner, you must take the center to survive. If they open in the center, you must respond by taking a corner. Following these rules forces a defensive draw.
-
Roman “Terni Lapilli”: An early structural ancestor played around the 1st century BCE in the Roman Empire was called Terni Lapilli (Three Little Stones). Instead of marking spaces on paper, players had three physical tokens that they moved around a stone-carved grid.
-
The Dawn of Video Games (1952): Tic-Tac-Toe holds a monumental place in computer history. A British scientist named Sandy Douglas created OXO for the EDSAC computer at the University of Cambridge—making it one of the very first video games in human history. The machine used a rotary telephone dial for player input and played a mathematically perfect game.
While grid-based games existed in ancient Egypt, the closest direct mechanical ancestor to Tic-Tac-Toe was played across the Roman Empire. It was called Terni Lapilli (Three Little Stones).
- The Grid: Romans scratched 3x3 grids into stone floors, public squares, and marble steps all over Rome.
- The Twist: Unlike modern Tic-Tac-Toe, where you mark an empty square and leave it, each Roman player only had three physical stones. Once all six stones were on the board, players had to take turns moving their existing stones around the empty spaces to try and form a line of three.
During the Middle Ages in Europe, the 3x3 grid layout was used outside of gaming. It was treated as a magical talisman or protective symbol. Known as the “Witches’ Foot,” the grid was etched onto the doors of homes and barns to ward off evil spirits, because the intersecting lines were believed to trap negative energy.
The game transformed into its modern paper-and-pencil format in England during the 19th century.
- The Name Change: In 1858, a British publication officially referred to the game as “Noughts and Crosses.” “Nought” represents the number zero or the letter “O”, while “Crosses” refers to the “X”.
- The Industrial Working Class: It became incredibly popular among working-class families because it required absolutely no expensive equipment—just a scrap of slate, chalk, or paper.
The phrase “Tic-Tac-Toe” did not originally belong to this game!
- In the late 19th century, “Tit-Tat-Toe” was a popular slate game where players closed their eyes, waved a pencil over a numbered wheel, and scored points based on where the pencil landed. The name was an onomatopoeia mimicking the tap-tap-tap sound of the pencil hitting the slate.
- In the 1920s, American toy companies began rebranding the traditional game of Noughts and Crosses under the catchier, rhythmic name Tic-Tac-Toe to boost sales, and the name permanently stuck in North America.
Tic-Tac-Toe holds a legendary, pioneering role in the history of computers.
- In 1952, a computer scientist named Sandy Douglas at the University of Cambridge was writing a PhD thesis on human-computer interaction.
- To test his theories, he programmed OXO, one of the very first digital video games in history, on the massive EDSAC vacuum-tube computer.
- Users used a rotary telephone dial to select their square on a grid displayed on a cathode-ray tube screen. The computer calculated its moves using an early, unbeatable AI algorithm, illustrating that machines could simulate strategic human thought.