On Tuesday, 27 April 2004 at 07:16:17 UTC, Walter wrote:
Every language needs a game written in it, and now Empire is in
D (at least
version 0.86). You can pick it up at www.classicempire.com.
Warning: Empire
has a long track record of being an enormous and unproductive
time waster.
It's been rumored to me to have caused many students to flunk
out of
college, job loss, and was even reputed to have instigated a
divorce. Start
playing it at your own risk.
Empire is the granddaddy of all computer strategic wargames.
It's probably
the most ripped off, pirated, emulated, copied and derived
computer game,
and for good reason.
Empire started out in Basic. Then it was translated to Fortran,
to PDP-11
assembler, to C, to C++, and now D. It carries along
anachronisms from each
former life, so don't think of it as a particularly compelling
example of
how to do things in D. But it does work as a basic Windows
program.
This code has many thousands of hours of testing on it. But
when I ported it
to D, the extra checking D does (in this case, array bounds
checking) found
two bugs in it.
There isn't very much to the primitive windows graphics in it.
If anyone
wants to take a stab at porting it to linux, that would be fun
to see!