1Jan

Hammurabi Game Source Code

1 Jan 2000admin
Hammurabi Game Source Code Rating: 3,8/5 1159 votes

A simple text based game with a GUI based on the Hammurabi game - slugiscool99/hammurabigame.

Disclaimer: I am not a doctor, nor do I play one on TV. HamurabiAccording to the, “Doug Dyment wrote The Sumer Game in 1968 as a demonstration program for the FOCAL programming language, programming it on a DEC PDP-8.”In 1975, when I was a senior in high school, Hamurabi was one of the first games I typed into the school's PDP-10 using a DecWriter. I obtained a copy of the source code, written in the BASIC programming language, from a company called the.

The games were written in another dialect of the BASIC programming language, and required tweaking to get them to run. This was how I first learned to program computers.Today, I find myself in need of learning new programming skills and the Hamurabi game should help here. The skills I hope to learn are Silverlight, Windows Phone, Android, Objective C for iPhone, and possibly MonoTouch and MonoDroid.The first step in using Hamurabi for Silverlight and Windows Phone is to convert the program to C# and then re-factor the program in a sensible way.10 REM. CONVERTED FROM THE ORIGINAL FOCAL PROGRAM AND MODIFIED20 REM. FOR EDUSYSTEM 70 BY DAVID AHL, DIGITAL30 REM. MODIFIED FOR 8K MICROSOFT BASIC BY PETER TURNBULL80 PRINT 'TRY YOUR HAND AT GOVERNING ANCIENT SUMERIA'85 PRINT 'SUCCESSFULLY FOR A 10-YR TERM OF OFFICE.'

:PRINT90 REM RANDOMIZE REMOVED95 D1=0:P1=0110 Z=0:P=95:S=2800:H=3000:E=H-S120 Y=3:A=H/Y:I=5:Q=1210 D=0215 PRINT:PRINT:PRINT 'HAMURABI: I BEG TO REPORT TO YOU,':Z=Z+1217 PRINT 'IN YEAR'Z','D'PEOPLE STARVED,'I'CAME TO THE CITY.' 218 P=P+I227 IF Q0 THEN 230228 P=INT(P/2)229 PRINT 'A HORRIBLE PLAGUE STRUCK!

HALF THE PEOPLE DIED.' 230 PRINT 'POPULATION IS NOW'P232 PRINT 'THE CITY NOW OWNS'A'ACRES.' 235 PRINT 'YOU HARVESTED'Y'BUSHELS PER ACRE.' 250 PRINT 'RATS ATE'E'BUSHELS.' 260 PRINT 'YOU NOW HAVE'S'BUSHELS IN STORE.'

:PRINT270 IF Z=11 THEN 860310 C=INT(10.RND(1)):Y=C+17312 PRINT 'LAND IS TRADING AT'Y'BUSHELS PER ACRE.' 320 PRINT 'HOW MANY ACRES DO YOU WISH TO BUY';321 INPUT Q:IF QC/2 THEN 530523 REM. THE RATS ARE RUNNING WILD!!525 E=INT(S/C)530 S=S-E+H531 GOSUB 800532 REM. LET'S HAVE SOME BABIES533 I=INT(C.(20.A+S)/P/100+1)539 REM.

HOW MANY PEOPLE HAD FULL TUMMIES?540 C=INT(Q/20)541 REM. HORRORS, A 15% CHANCE OF PLAGUE542 Q=INT(10.(2.RND(1).3))550 IF P.45.P THEN 560553 P1=((Z-1).P1+D.100/P)/Z555 P=C:D1=D1+D:GOTO 215560 PRINT:PRINT 'YOU STARVED'D'PEOPLE IN ONE YEAR!!!' 565 PRINT 'DUE TO THIS EXTREME MISMANAGEMENT YOU HAVE NOT ONLY'566 PRINT 'BEEN IMPEACHED AND THROWN OUT OF OFFICE BUT YOU HAVE'567 PRINT 'ALSO BEEN DECLARED 'NATIONAL FINK'!!' :GOTO 990710 PRINT 'HAMURABI: THINK AGAIN. YOU HAVE ONLY'711 PRINT S'BUSHELS OF GRAIN. NOW THEN,'712 RETURN720 PRINT 'HAMURABI: THINK AGAIN.

YOU OWN ONLY'A'ACRES. NOW THEN,'730 RETURN800 C=INT(RND(1).5)+1801 RETURN850 PRINT:PRINT 'HAMURABI: I CANNOT DO WHAT YOU WISH.'

855 PRINT 'GET YOURSELF ANOTHER STEWARD!!!!!' 857 GOTO 990860 PRINT 'IN YOUR 10-YEAR TERM OF OFFICE,'P1'PERCENT OF THE'862 PRINT 'POPULATION STARVED PER YEAR ON AVERAGE, I.E., A TOTAL OF'865 PRINT D1'PEOPLE DIED!!' :L=A/P870 PRINT 'YOU STARTED WITH 10 ACRES PER PERSON AND ENDED WITH'875 PRINT L'ACRES PER PERSON.' :PRINT880 IF P133 THEN 565885 IF L10 THEN 940892 IF L3 THEN 960896 IF L.

  • The Code of Glory is a tale of mystery and power. A corrupt French General has found an ancient magic stone of power and the besieging English Army is at risk by the new found terror. Characters: Henry Thomas a solider and Adelie daughter of a wizard.

    • The Code of Glory
    • dpickett
    • Freeware (Free)
    • Windows
  • Free Source Code Browser software. Aren't webpages that try to prevent you from viewing their source code or saving images by disabling right-click bothersome? Who cares! View the source code of any webpage, and save any image as well.

    • FreeSourceCodeBrowser.zip
    • Free Software Downloads
    • Freeware (Free)
    • 2.55 Mb
    • Win95, Win98, WinME, WinNT 3.x, WinNT 4.x, WinXP, Windows2000, Windows2003, Windows Vista
  • A fast and easy tool for counting source code, blank and comment lines of software projects for many programming/script languages. With this application you get a detailed report (as table and additionally as graphic) about the source code of your. ..

    • UniversalCodeLinesCounter.exe
    • AB-Tools.com
    • Freeware (Free)
    • 2.53 Mb
    • Win98, WinME, WinXP, Windows2000, Windows2003, Windows Tablet PC Edition 2005
  • Hangman Flash Game Source Code.You can easily install Hangman game on your webpage.The source code of Hangman game includes an initial file *.fla which contains ActionScript code and graphics for this game.For adding or changing any of the puzzle. ..

    • hangman_demo.zip
    • Fla-shop.com Inc.
    • Demo ($24.90)
    • 37 Kb
    • Windows All
  • This award winning software engages your child's focus with exciting Avatars (hero icons), the spinning behavior wheel and Samurai Warrior images along with The Code of The Samurai. Children compete to be 'good' based on earning points for good. ..

    • code.zip
    • Powergate Technologies
    • Shareware ($39.95)
    • 27.47 Mb
    • Windows2000,Windows Vista, Win98, WinME, WinNT 3.x, Win95, Win 3.1x
  • The source code of the Brainstormers' RoboCup champion team 2005 has been made publicly available at the end of 2005. That source code release contains also a lot of our results in applying Reinforcement Learning in the simulated soccer. ..

    • BS05PubRel.tar.gz
    • bsrelease
    • Freeware (Free)
    • 1.09 Mb
    • Linux
  • Zip Code Finder is an application written in Java for cleaning up mailing lists. It will lookup the zip code of any address missing a USPS zip in a tab-delimited input file and it will output the results to another tab-delimited. ..

    • zip_code_finder.zip
    • zipcodefinder
    • Freeware (Free)
    • 185 Kb
    • Windows; Mac; Linux
  • Apple 512gb ssd macbook pro. Original Creator -> http://www.donhopkins.comOriginal SimCity projects by Don Hopkins: http://www.art.net/~hopkins/Don/simcity/index.htmlfrom: http://www.donhopkins.com/drupal/node/130GPL Open Source Code of OLPC SimCity to be called Micropolis. ..

    • Micropolis - SimCity sourcecode
    • Micropolis
    • Freeware (Free)
    • Windows
  • Ncr drivers download. Source Viewer is a php coded web page allowing you to display the html and php source code of files on your server directly in a browser. It's free of charge.

    • svhp.exe
    • softSWOT
    • Freeware (Free)
    • 54 Kb
    • Win98, WinME, WinNT 3.x, WinNT 4.x, Windows2000, WinXP, Windows2003, Mac PPC, Mac OS X
  • Password rescue software recover secret code of various instant chat messenger (MSN, Yahoo, Google Talk, ICQ etc), web login form (Gmail, Hotmail, Comcast etc), social networking websites (Orkut, MySpace) and all authenticated windows application.

    • IE-pwd-recovery-demo.exe
    • Data Retrieval Software
    • Shareware ($38.00)
    • 457 Kb
    • Win98, WinME, WinNT 3.x, WinNT 4.x, Windows2000, WinXP, Windows2003, Windows Vista
  • CodePsy is a code writer based on the analyzed coding context. The current implementation is an add-in for C# in Visual Studio .NET. It features the Statement Writer, which allows the programmer to write the code of conditional and iteration. ..

    • CodePsy10.zip
    • canti Developpement Inc
    • Shareware ($19.95)
    • 274 Kb
    • Windows XP, 2000
  • KIside is a message digest computing and displaying tool. KIside computes and shows the hash code of any file as a string of hexadecimal numbers. KIside implements standard algorithms such as MD5, SHA1,. ..

    • kiside04-src-dist.tar.gz
    • Alessio Saltarin
    • GPL ($)
    • 27 Kb
    • Any Platform

Related:GameCode Of Hammurabi - Babylonian Empire Hammurabi - Free Ecoin Card Code Pin Code - Convert Excel Vba Code To Java Code - Code Sony Code Disc
Pages : 1 2 3>