Skip to content
forked from blt/hamurabi

A translation of the classic BASIC game. now with ncurses support.

License

Notifications You must be signed in to change notification settings

return5/hamurabi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a forked repo. everything in the readme after this line and until 'My Changes' is left as is from the originial repo.

Hamurabi: Classic BASIC gaming.

An MIT licensed, C99 implementation of the classic BASIC game hamurabi. Useful for boostrapping build systems, dreaming of a life that can never be.

What you get.

For history's sake, the HMRABBI by Peter Turnbull is included. Of primary interest are going to be:

  • main.c :: User interaction, state machine.
  • city.{c,h} :: City structure, manipulation functions.

This being a quick hack, comments are minimal but it shouldn't be too hard to untangle. The primary goal in the translation was to separate user I/O from the core computations. In some sense this is not yet complete: the state machine is not yet separated from user I/O. Still, it is now far simpler to swap out the command-driven interface with, say, ncurses or a socket.

As with any translation, there was some leeway taken. If I went too far, report it as a bug!

What I'll think is nifty.

There's certainly possibility for improvement. Here's a list of things I'd readily accept:

  • Curses interface,
  • documentation (source comments or otherwise) and
  • Debian package infrastructure.

If it's not on the list, send me a patch: I'll probably like it!

My Changes (return5)

  • I added Ncurses functionality to the code. very basic functionality. Instad of running in just terminal, it now runs in an ncurses window.
  • I added a window to show information about population,acres,year,and bushels owned
  • I added a new makefile and removed the one previously there.
  • I moved around some of the code in 'main.c'

About

A translation of the classic BASIC game. now with ncurses support.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.1%
  • Objective-C 2.4%
  • Makefile 1.3%
  • M4 1.2%