You have probably played tic tac toe hundreds of times without thinking twice about where it came from. It is just that little grid you scribble on a napkin, right? Turns out the game has been around for over two thousand years, inspired the first computer game ever made, and has been studied seriously by mathematicians.
Here is the full story.
The short answer: Tic tac toe in its earliest known form dates back to ancient Rome around 100 BC. The modern version with Xs and Os solidified in England in the early 19th century, and the name "tic tac toe" became common in America by the early 20th century.
~100 BC: Ancient Rome
The earliest known relative of tic tac toe is a Roman game called Terni Lapilli, Latin for "three pebbles." Archaeologists have found the characteristic 3×3 grid scratched into stone all over the Roman Empire — on pavements, on walls, on the steps of the Colosseum. It has also turned up in Roman military camps in Britain, on the pavements of Pompeii, and at sites across the wider empire. The spread suggests it was genuinely popular rather than a local curiosity. Some historians believe soldiers carried the game from city to city as they moved through the empire.
The Roman version worked differently to the modern game. Each player had only three pieces and had to slide them around the board rather than placing new ones. But the objective was identical: get three in a row.
You can play Terni Lapilli here. We also wrote a full rules guide covering the sliding phase, which changes the strategy considerably.
Early 19th century: England
The version we recognise today — placing a new X or O on each turn until someone wins or the board fills up — appears to have solidified in England in the early 1800s. The British name for the game, noughts and crosses, describes exactly what you do: place noughts (the O) and crosses (the X).
The first printed reference to "noughts and crosses" appears in the British Journal of Education in 1843, but the game was already well established as a children's pastime by then. A complete game could take less than a minute, and all you needed was a stick to draw a grid in the dirt.
Late 19th century: America and the naming question
The name "tic tac toe" arrived in America in the late 19th century, though it originally referred to a completely different game: a Victorian parlour pastime where players closed their eyes and tossed a pencil onto a slate covered in numbers, scoring points based on where it landed. The name was onomatopoeia — "ticktack" was the sound the pencil made hitting the slate. The Random House Dictionary traces "ticktack" as a word for the repetitive clicking sound a small object makes on a hard surface.
There is actually a competing theory. An 1858 article in Notes and Queries, a British scholarly journal, described the game being called "tit-tat-toe" in the writer's school days, with that phrase as "the formulary words of victory" — essentially a chant said when winning. "Tit tat toe, three in a row." Under this theory the name came not from a pencil game but from a victory chant, much like "checkmate" in chess.
Both theories have evidence behind them. What is clear is that the name drifted into everyday language and attached itself to the grid game when Americans needed something to call it. The earliest known reference to the grid game itself in print appears in the American publication The Academician in 1818, listed as "tit-tat-to." By the early 20th century the modern spelling "tic tac toe" had settled in American English while Britain kept "noughts and crosses."
The game has a different name in almost every country:
| Name | Region |
|---|---|
| Tic tac toe | United States |
| Noughts and crosses | United Kingdom, Australia, New Zealand |
| Xs and Os | Ireland, parts of Canada |
| Tit tat toe | Older British usage |
| Tick tack toe | Alternative American spelling |
| Terni Lapilli | Ancient Rome |
The British name is arguably more descriptive. "Nought" is another word for zero, so "noughts and crosses" literally names both symbols played. "Tic tac toe" by contrast describes the sound of a pencil hitting a numbered slate in a completely different game — one that has nothing to do with Xs and Os.
1952: The first computer game
Here is the part that tends to surprise people. In 1952, a Cambridge computer scientist named Alexander Douglas built a program called OXO as part of his PhD thesis on human-computer interaction. OXO ran on the EDSAC (Electronic Delay Storage Automatic Calculator), one of the first stored-programme computers ever built, and displayed the game on a cathode ray tube screen. Players entered their moves using a rotary telephone dial, each number corresponding to a square on the grid.
The computer played a genuinely solid game and predates Pong by twenty years. Douglas chose tic tac toe deliberately: simple enough for early hardware to handle, but complex enough to demonstrate that a machine could make decisions. If you are looking for the moment video games began, there is a reasonable argument it started with a 3×3 grid in a Cambridge lab.
Mathematicians solved it, and it is always a draw
Tic tac toe is what mathematicians call a solved game: the optimal outcome has been determined with certainty. If both players play perfectly, the game always ends in a draw.
There are 255,168 possible tic tac toe games. When you account for rotations and reflections that drops to around 26,830 distinct games, but every single one is determined entirely by the players' choices — no luck involved at all. The first player can always avoid losing by taking the centre square, which belongs to four possible winning lines, and responding correctly to every threat after that.
This is why tic tac toe stops being interesting to adults pretty quickly. Once both players know the basic strategy, every game ends the same way. We go into exactly why that ceiling exists, and whether it makes the game skill or luck, in Is Tic Tac Toe Luck or Skill?. The Hard mode on TicToe.org runs the full minimax algorithm, the same kind of game tree search that powers chess engines, just on a much smaller board.
Why it has lasted 2,000 years
For a solved game with no competitive ceiling, tic tac toe has remarkable staying power. You can explain it to a four-year-old in thirty seconds and all you need is a pen and some paper. The moment a child first works out how to force a win — or realises they can always draw if they play carefully — is one of the earliest experiences most people have of genuine strategic thinking.
Two thousand years on, the grid is still getting filled in. Not bad for a game a Roman soldier scratched into a pavement.
If the standard game feels solved to you, tic tac toe variations covers seven rule changes that make it genuinely interesting again. For why a solved game stays this culturally persistent, the psychology of tic tac toe goes into the deeper reasons it keeps getting played.
Sources
- Tic-tac-toe — Wikipedia, Roman origins, naming history, and mathematical analysis
- OXO (video game) — Wikipedia, Alexander Douglas and the 1952 EDSAC computer game
- Computer History Museum 1952 — OXO entry in the museum timeline
- phrases.org.uk — Etymology and earliest known printed references to "tic tac toe"
- Notes and Queries, 1858 — "Tit-tat-toe" as victory chant; sourced via Outdoor Games N Sports
- The Academician, 1818 — Earliest known printed reference to the grid game in America; sourced via Our Pastimes
- Random House Dictionary on "ticktack" — Onomatopoeia theory for the name; sourced via Our Pastimes