Posting My Demo

Jim Burnes jvburnes at gmail.com
Thu Apr 24 14:07:57 PDT 2008


Hey D'ers(?)

As a first excercise in D programming I wrote a straightforward
implementation of John Conway's Life simulation.   I developed it on
Linux using gdc.  I uses ncurses for output so its sort of old-school,
but has some nice features such as:

1. During startup it loads an initial screen from disk
2. Immediately after startup you get to edit the initial screen.
3. Its runs fairly fast even though it doesn't use octree optimizations.
4. You can pause the sim at any time, edit the current screen and 
unpause and single step.

In any case I learned a bit about interfacing to C libraries, 
dynamic multi-dimensional arrays etc and thought someone else might
benefit from the code.

It compiles and runs fine under the version of GDC in ubuntu.  If you
plan on building it yourself you will need the "bcd" package that 
converts C header files to D (had to go hunting for that).

In any case, I tried contacting admin at dsource to get it posted there
but I haven't heard back.

Any suggestions?

Thanks,

Jim Burnes



More information about the Digitalmars-d mailing list