coding-horror / basic-computer-games

An updated version of the classic "Basic Computer Games" book, with well-written examples in a variety of common MEMORY SAFE, SCRIPTING programming languages. See https://coding-horror.github.io/basic-computer-games/
The Unlicense
10.84k stars 1.33k forks source link

Add Perl implementation for Hammurabi #905

Closed polettix closed 10 months ago

polettix commented 10 months ago

An implementation of Hammurabi in Perl. There's a fix for a possible bug in calculating the final average percentage of starved people, for the rest it's pretty faithful to the original.

The game logic and the UI are completely separated, so it's theoretically possible to re-implement it in Curses or some other UI tool.