/hamurabi.py

Python clone of the 1971 Computer game, Hamurabi, by David H. Ahl

Primary LanguagePython

Hamurabi.py -- a modern python port of the BASIC game, Hamurabi

A very special thanks to the first author of the first Strategy game, David A. Ahl, who authored the book, BASIC Computer Games, which inspired so many people to write and share their own, and most especially, the spirit of sharing the source code, and to encourage education through the study and play of computer games in general.

From page 78 of BASIC Computer games:

In this game you direct the administrator of Sumeria, Hammurabi, how to manage the city. The city initially has 1,000 acres, 100 people, and 3,000 bushels of grain in storage.

You may buy and sell land with your neighboring city-states for bushels of grain -- the price will vary between 17 and 26 bushels per acre. You also must use grain to feed your people and as seed to plant the next year's crop.

You will quickly find that a certain number of people can only tend a certain amount of land and that people starve if they are not fed enough. You also have the unexpected to contend with such as a plague, rats destroying stored grain, and variable harvests.

You will also find that managing just the few resources in this game is not a trivial job over a period of say ten years. The crisis of population density rears its head very rapidly.