Hamurabi is a text-based game of land and resource management and is one of the earliest computer games. Like many BASIC games of the time, Hamurabi was mainly a game of numeric input. As the ruler, the player could buy and sell land, purchase grain and decide how much grain to release to his kingdom.