Guess Games

    Guess Games

    Bulls and Cows: The History Behind Guess the Number

    Published on 5 February 2026•5 min read

    The game "Guess the Number" might feel like a modern digital puzzle, but its roots go back far deeper than the first computer. It is based on a classic pencil-and-paper game known as "Bulls and Cows," a mental duel of deduction that has challenged logical minds for over a century.

    Origins in Pen and Paper

    Bulls and Cows: The History Behind Guess the Number

    While the exact origin is unknown, Bulls and Cows is believed to have become popular in England in the late 19th or early 20th century. It was a game for two players. Each would write down a secret 4-digit number (with no repeating digits).

    Players would take turns guessing. A "Bull" meant a correct digit in the correct position. A "Cow" meant a correct digit in the wrong position. The rigorous logic required to eliminate possibilities made it a favorite among mathematicians and computer scientists.

    The Mastermind Connection

    In 1970, Mordecai Meirowitz, an Israeli telecommunications expert, created a version with colored pegs instead of numbers. He called it "Mastermind." It became one of the best-selling board games of the 1970s.

    The First Computer Game?

    Because the rules are purely logical, Bulls and Cows was one of the very first games ever programmed for a computer. In the 1960s, it appeared on mainframes like the Titan computer at Cambridge University. It was called "Moo" and allowed users to play against the machine—often the only "fun" allowed on these expensive scientific tools.

    Why Logic Games Endure

    From Victorian drawing rooms to 1970s plastic boards to modern web apps, the core appeal remains the same: the satisfaction of pure deduction. Every guess is an experiment. Every result is data. Solving the puzzle is a triumph of the scientific method in miniature.

    Crack the code

    Can you solve a 4-digit code in fewer than 10 tries?