Crates.io | hammurabi |
lib.rs | hammurabi |
version | 0.1.2 |
created_at | 2025-06-16 13:37:17.291448+00 |
updated_at | 2025-06-20 07:07:32.529049+00 |
description | A modern terminal-based recreation of the classic 1968 Hammurabi game |
homepage | |
repository | https://github.com/stjepangolemac/hammurabi |
max_upload_size | |
id | 1714294 |
size | 139,081 |
A modern terminal-based recreation of the classic 1968 BASIC game "Hammurabi" (originally "The Sumer Game"), written in Rust with a beautiful TUI interface.
Step into the sandals of ancient Babylon's mighty ruler! As Hammurabi, you must wisely manage your kingdom's resources through ten years of tribulation. Buy and sell land, plant crops, and feed your people while navigating the unpredictable forces of nature.
This implementation features:
Download the latest release for your platform from the releases page:
hammurabi-windows-amd64.zip
hammurabi-macos-amd64.tar.gz
hammurabi-macos-aarch64.tar.gz
hammurabi-linux-amd64.tar.gz
Extract and run:
# macOS/Linux
tar -xzf hammurabi-*.tar.gz
./hammurabi
# Windows
# Extract the zip file and run hammurabi.exe
If you have Rust installed:
cargo install hammurabi
git clone https://github.com/stjepangolemac/hammurabi.git
cd hammurabi
cargo install --path .
hammurabi # Start with random seed
hammurabi --seed 42 # Start with specific seed for reproducible gameplay
You rule for 10 years, making three crucial decisions each year:
Land Management 🏛️
Food Distribution 🍞
Crop Planting 🌾
After 10 years, your performance is evaluated based on:
Achieve greatness and be remembered alongside history's finest leaders!
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)This project is licensed under the MIT License - see the LICENSE file for details.
The original Hammurabi game was one of the first strategy/resource management games ever created. It was written in BASIC in 1968 and became widely popular after being published in David Ahl's "BASIC Computer Games" book. This implementation stays true to the original mechanics while providing a modern, polished terminal experience.
Made with ❤️ and Rust