Hamurabi (video game)
Hamurabi is a text-based strategy video game of land and resource management. It was first developed under the name King of Sumeria or The Sumer Game by Doug Dyment in 1968 at Digital Equipment Corporation as a computer game for fellow employee Richard Merrill's newly invented FOCAL programming language.
The game consists of ten rounds wherein the player, as the ancient Babylonian king Hammurabi, manages how much of their grain to spend on crops for the next round, feeding their people, and purchasing additional land, while dealing with random variations in crop yields and plagues. The Sumer Game was inspired by The Sumerian Game, a much more in-depth text-based economic simulation intended for children, developed from 1964 to 1966 by designer and elementary school teacher Mabel Addis and IBM programmer William McKay.
Multiple versions of the game were created for the FOCAL language, but around 1971 David H. Ahl ported it to DEC BASIC and in 1973 published it in 101 BASIC Games. This was later republished in Microsoft BASIC form in 1978's BASIC Computer Games. His expanded version of the game, titled Hamurabi, quickly became the more prominent version due to the popularity of both the book and the programming language. Hamurabi influenced many later strategy and simulation games and is also an antecedent to the city-building genre.
Gameplay
Hamurabi is a text-based strategy video game centered on resource management in which the player, identified in the text as the ancient Babylonian king Hammurabi, enters numbers in response to questions posed by the game. The resources that the player must manage are people, acres of land, and bushels of grain. These are managed over the course of ten rounds, each of which represents a year. Each person can farm a set amount of land, which produces grain. Grain, in turn, can be used to feed people, who otherwise die the following round, or planted for the following year's crop. The player may also buy or sell land to their neighbors each turn in exchange for grain. Each round begins with an adviser stating "Hamurabi: I beg to report to you" the current status of the city, including the prior year's harvest and change in population, followed by a series of questions as to how many bushels of grain to spend on land, seeds, and feeding the people.The game's variations are driven by random numbers: the price of land is randomly decided each round from between 17 and 26 bushels per acre, the amount of bushels generated each round is randomly decided, random amounts of bushels are eaten by rats, and new people come to the city each year in random amounts. Each year also presents the possibility of a plague reducing the population by half. The game ends after ten rounds, or earlier if the entire population of the city dies or at least 45 percent of the people starve in a single round. The end-game appraisal, added in the 1973 version of the game, compares the player to historical rulers—such as "Your heavy-handed performance smacks of Nero and Ivan IV."
Development
In 1962, Westchester County, New York and IBM began studying the use of computers in education, using a grant from the U.S. Office of Education to produce "economic games" for sixth-grade students. One, The Sumerian Game, was a model of ancient Sumerian civilization, written and designed by elementary-school teacher Mabel Addis and programmed by William McKay of IBM. The early mainframe game, set in 3500 B.C., has players act as rulers of the city of Lagash. In 1966 Addis revised the game and interspersed it with cutscenes of taped audio lectures and slide projector images.minicomputer
In 1968, Digital Equipment Corporation employee Richard Merrill invented the FOCAL programming language. Fellow employee Doug Dyment heard a description of The Sumerian Game after a talk at the University of Alberta, and as an early program for the language developed King of Sumeria, programming it for a DEC PDP-8 minicomputer. The game is sometimes erroneously attributed to Merrill in 1969, but 1969 and 1973 program catalogs by the Digital Equipment Computer Users Society list Dyment as the original developer, though they also renamed it to The Sumer Game. The game was originally described as: "This is a simulation program/game which will run on a minimal PDP-8 system. The economy of a Sumerian city in the year 3000 B. C. is simulated in the fashion of a modern-day 'business game.'" "Business games" were text-based business management simulation games, such as The Management Game, which was used in business schools such as at Carnegie Mellon University since at least 1958. By 1961, there were over 89 different business and economic simulation games in use, with various graphical capabilities. The final game was, according to Dyment, "the largest piece of FOCAL-8 code that could fit in a 4K machine: there was literally not room for a single extra character". As a result, the game uses shortened forms for much of the text, including spelling the player-controlled ruler, changed from Luduga to the Babylonian king Hammurabi, as "Hamurabi".
Multiple versions of The Sumer Game were created. Jerry Pournelle recalled in 1989 that "half the people I know wrote a Hammurabi program back in the 1970s; for many, it was the first program they'd ever written in their lives". The 1973 DECUS catalog additionally lists a French-language version by Belgians J. F. Champarnaud and F. H. Bostem for the FOCAL-69 version of the language, and a 1978 catalog adds Ruben by James R. B. Howard II and Jimmie B. Fletcher, "a modification of the "King of Sumeria" game" with additional features. The French version of the game, however, despite being listed as "Sumer ", described itself not as a translation of the original game, but as a translation of "Hamurabi ", due to another version of the game which was already released by then.
Around 1971, DEC employee David H. Ahl had written a version of The Sumer Game in the BASIC programming language. Unlike FOCAL, BASIC was run not just on mainframe computers and minicomputers, but also on personal computers, then termed microcomputers, making it a much more popular language. In 1973, Ahl published BASIC Computer Games, a best-selling book of games written in BASIC, which included his version of The Sumer Game. The expanded version was renamed Hamurabi and added an end-of-game performance appraisal. The popularity of both the book and the programming language itself meant that Ahl's version of the game became the more widely known version over the relatively obscure original, as evidenced by the 1973 French FOCAL version considering "Hamurabi" to be the more prominent name. BASIC Computer Games noted that the game was a modification of a game "written in FOCAL at DEC", but listed the author as "unknown". The 1978 edition of the book, which was the first million-selling computer book, noted that the game's name was intended to be "Hammurabi", but not only was one "m" dropped in the file name to fit in an eight-character limit, but Ahl consistently misspelled the name inside of the game, following Dyment's spelling, leading to the generally accepted name of the game to be Hamurabi.