← All posts
May 10, 2026 · History

The History of Tic Tac Toe — From Ancient Rome to Your Browser

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.

It started in ancient Rome

The earliest known relative of tic tac toe is a Roman game called Terni Lapilli, which roughly translates to "three pebbles." Archaeologists have found the characteristic 3×3 grid scratched into stone all over the Roman Empire — on pavements, on walls, even on the steps of the Colosseum. Soldiers played it. Children played it. It was basically the fidget spinner of the ancient world.

The Roman version worked slightly differently to modern tic tac toe — each player only had three pieces and had to slide them around the board rather than placing new ones. But the goal was the same: get three in a row.

Noughts and crosses takes shape in England

The version we recognise today — where you write X or O in a square and leave it there — seems to have solidified in England sometime in the early 19th century. The British name for the game, noughts and crosses, reflects exactly what you are doing: noughts (zeros, the O) and crosses (the X).

The first printed reference to "noughts and crosses" in English appears around 1864. By that point the game was already well established as a children's pastime, played on chalk boards and scraps of paper.

In the UK and Australia it is "noughts and crosses." In the US and Canada it is "tic tac toe." Same game, different names — much like football and soccer.

Where did the name "tic tac toe" come from?

This one is a bit murkier. The earliest American use of the phrase "tic-tac-toe" actually referred to a completely different game — a children's toy where you threw a pencil at a slate and scored points based on where it landed. It was basically a dexterity game, not a strategy game.

At some point in the late 19th century the name migrated over to the grid game we know today. By the time American children were playing it in the early 20th century, "tic tac toe" had firmly stuck. The exact reason for the name transfer is lost to history, but it is one of those linguistic accidents that nobody bothered to correct.

The first computer game was tic tac toe

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 let a human player play noughts and crosses against the computer on a cathode ray tube display.

It was not just a demo — the computer played a pretty solid game. And it predates Pong by twenty years. If you are looking for the moment video games began, there is a reasonable argument that it started with a 3×3 grid in a Cambridge lab.

Mathematicians solved it — and it's a draw

Tic tac toe is what mathematicians call a solved game. That means the optimal outcome has been determined with certainty: if both players play perfectly, the game always ends in a draw. No exceptions.

This is actually why tic tac toe stops being interesting to adults pretty quickly. Once you figure out the basic strategy — take the centre, then a corner — you can guarantee a draw every time, and so can your opponent. The game hits a ceiling.

That said, the path to that ceiling is a great introduction to strategic thinking, which is probably why it has been used to teach children for centuries. The Hard mode on TicToe.org runs the full minimax algorithm, which is the same kind of game-tree search that powers chess and Go engines — just on a much smaller board.

Why people still play it

For a "solved" game with no real competitive depth, tic tac toe has remarkable staying power. Part of that is simplicity — you can explain it to a four-year-old in thirty seconds and all you need is a pen and some paper. Part of it is nostalgia. And part of it is that playing against someone who doesn't know the optimal strategy yet is genuinely fun.

There is also something satisfying about the moment a child first works out how to force a win, or discovers they can always draw if they play carefully. It is one of the earliest experiences most people have of actual 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.


Play tic tac toe More posts →