Hamurabi (1968) gameplay screenshot
Year1968
Decade1960s
PlatformPDP-8 / BASIC
DeveloperDoug Dyment
PublisherDEC

Hamurabi

1968 · Strategy · PDP-8 / BASIC

About Hamurabi

Hamurabi (1968) is a turn-based game of ruling Sumeria for ten years — buying land, feeding the people and planting grain — first written by Doug Dyment as King of Sumeria and spread in David Ahl's BASIC books.

Hamurabi in Depth

The player is the Babylonian king Hammurabi, managing three resources: people, acres of land and bushels of grain. Each of the ten rounds is a year. The player decides how much land to buy or sell, at a random price of 17 to 26 bushels an acre, how much grain to feed the people and how much to plant, since each person can farm only so much land. Yields are random, rats eat random amounts of grain, new people arrive each year, and a plague can halve the population. The reign ends after ten years, or earlier if everyone dies or at least 45% starve in a single year. A verdict then judges the reign, comparing a bad ruler to Nero and Ivan IV.

Making Hamurabi

It descends from The Sumerian Game, written in 1964 by teacher Mabel Addis and programmed by IBM's William McKay for a Westchester County education project. Doug Dyment, a DEC employee who had heard about it after a talk at the University of Alberta, wrote King of Sumeria in 1968 in the FOCAL language for a PDP-8; its ruler's name changed from Luduga to Hamurabi to fit a 4K machine. David Ahl ported it to BASIC around 1971, renamed it Hamurabi and published it in DEC's newsletter Edu, adding the end-of-reign appraisal, then republished it in 101 BASIC Computer Games in 1973. The 1975 edition, BASIC Computer Games, sold over a million copies.

Hamurabi Trivia

  • The missing "m" in the name began with an eight-character file name limit.
  • It is described as an ancestor of the city-building genre, and influenced M.U.L.E. and Anacreon.
  • Richard Merrill is sometimes wrongly credited as its creator.
  • Jerry Pournelle wrote in 1989 that "half the people I know wrote a Hammurabi program back in the 1970s."
  • Its descendants include Kingdom, Dukedom and Santa Paravia en Fiumaccio.

Sources & further reading