The real name of the king is "Hammurabi" - famous for the law "Code of Hammurabi" in which is the original source of: "an eye for an eye, a tooth for a tooth". The old BASIC version by David Ahl was misspelled "Hamurabi", possibly because of the 8-digit limit of file names on the early PCs.
Nice but in my first game sadly all my rats died and in my second game I got a nice healthy rat population of 2578 who then managed to eat me into a grain debt.
"You have -1978 bushels of grain"
Did you consider tying animation to the results? Maybe showing a field in various stages of crop yield or a group of fat vs. thin people, etc.?
Great game - just curious about a graphical representation of game concepts.
Yes - despite the java input problem it's very good - maybe the graphic upper right could change with each year depending on how well/badly the city is doing...
I can't seem to get the sliders to work in the Java version either. The sliders seem to work just fine when you download the project and run it on your "local" version of Scratch.... and this is a bug with Scratch itself and not necessarily what I wrote.
I wish there were some other easy input method for doing numeric input, and perhaps I ought to try something else here.
How do you do it? I tried sliding the little buttons and I tried clicking in the boxes to change the numbers, but nothing happens. What should I click or whatever?
A hint on the rats.... make sure that you try to starve them out by buying land if you have quite a bit of grain. Watch for getting land at a cheap price.
The rat population lives or dies based on how much grain you have left over in storage, and the number will drop dramatically if you starve them out.
Download "Hammarubi"(15 sprites and 43 scripts) and open it in Scratch
Project Notes
The classical game of Hammurabi, with credit to David Ahl and his version written in BASIC, which was an adaption of an earlier version written in FOCAL.
This is a complex strategy game, where you try to grow an ancient kingdom through careful management of your resources. Making the wrong decisions will cause you to kill off your population or end up with nothing at all that is left of your kingdom.
Aspects remaining to be completed in this game include developing a "victory" screen to compare your progress to other players.... as was originally used in the version by David Ahl.
I also used a slightly different population model than the original FOCAL and BASIC versions, including a significantly more complex model for childbirth.
Comments
You need to be logged in to post comments
Add a Comment
The real name of the king is "Hammurabi" - famous for the law "Code of Hammurabi" in which is the original source of: "an eye for an eye, a tooth for a tooth". The old BASIC version by David Ahl was misspelled "Hamurabi", possibly because of the 8-digit limit of file names on the early PCs.
(view all replies)Comment Reply
awesome
(view all replies)Comment Reply
very ,very ,very , cool. I didn't think it was possible to make a strategy game on scratch. P.S. I think your really good at making things on scratch
(view all replies)Comment Reply
cool game.
(view all replies)Comment Reply
Nice but in my first game sadly all my rats died and in my second game I got a nice healthy rat population of 2578 who then managed to eat me into a grain debt. "You have -1978 bushels of grain"
(view all replies)Comment Reply
Did you consider tying animation to the results? Maybe showing a field in various stages of crop yield or a group of fat vs. thin people, etc.? Great game - just curious about a graphical representation of game concepts.
(view all replies)Comment Reply
This game is awesome, i was trying to make something like it but i had no idea how to. This is so cool!!
(view all replies)Comment Reply
P.S. The name says "Hammarubi" but it must be "Hammurabi"
(view all replies)Comment Reply
i agree, my history book says that too
(view all replies)Comment Reply
omg inbd
(view all replies)Comment Reply
I don't really get it......the numbers just keep changing for no reason....... ~Thistle
(view all replies)Comment Reply
great job!
(view all replies)Comment Reply
I really like the solution you used to get inlined comments in your code.
(view all replies)Comment Reply
Cool But This is in Rome!
(view all replies)Comment Reply
OMG! that is some seriously long code. good job!
(view all replies)Comment Reply
Very Good
(view all replies)Comment Reply
how the hell did you have the patience for all that???
(view all replies)Comment Reply
Ohh good!
(view all replies)Comment Reply
Amazing! I coudnt have even THOUGHT anyone could make something so complex. i downloaded it and it must've taken FOREVER! How long did it take you?
(view all replies)Comment Reply
Yes - despite the java input problem it's very good - maybe the graphic upper right could change with each year depending on how well/badly the city is doing...
(view all replies)Comment Reply
Very complex. I wouldn't have expected to find this sort of strategy game in 'Scratch'. Well done.
(view all replies)Comment Reply
Nice strategy game!
(view all replies)Comment Reply
I can't seem to get the sliders to work in the Java version either. The sliders seem to work just fine when you download the project and run it on your "local" version of Scratch.... and this is a bug with Scratch itself and not necessarily what I wrote. I wish there were some other easy input method for doing numeric input, and perhaps I ought to try something else here.
(view all replies)Comment Reply
Sliders don't work for me either :(
(view all replies)Comment Reply
this is fun!
(view all replies)Comment Reply
How do you do it? I tried sliding the little buttons and I tried clicking in the boxes to change the numbers, but nothing happens. What should I click or whatever?
(view all replies)Comment Reply
A hint on the rats.... make sure that you try to starve them out by buying land if you have quite a bit of grain. Watch for getting land at a cheap price. The rat population lives or dies based on how much grain you have left over in storage, and the number will drop dramatically if you starve them out.
(view all replies)Comment Reply
that was a fun strategy game!
(view all replies)Comment Reply
The rats have taken over the city - can I have an option to buy some cats? :)
(view all replies)Comment Reply
SERIOUSLY
(view all replies)Comment Reply
was this supposed to be fair on the people's side
(view all replies)Comment Reply