A r t i f i c i a l L
i f e S i m u l a t o r
|
After
4 months of programming work, I have nearly finished my first Java program,
"Amoeba". It is a variation on the old "life" algorithm, that I came up
with years ago, and initially programmed it to run on a language called
Amos on the Amiga500.
The "Amoeba" starts out
blue, and grows onto the black "soil". As it gets stronger, it begins
to turn green, before becoming "toxic" and dying.
The "Herbivore" hunts
out the freshest, greenest Amoeba in its immediate vicinity. The Herbivore
is yellow when it is starving, and white when healthy and ready to multiply.
You can change various
parameters while the simulation is running, including the size of the
array, the rate at which the Heribivores lose strength (Metabolism), and
the maximum health level of the Amoeba (Toxic Level).
It is exceeding CPU-intensive,
runs best on processors above 200Mhz only. It features multi-threaded
operation, with the status
 |
display only updating every
2000ms. Future improvements will be double-buffering the images, and making
the 3D viewmode better. I recomennd you quit your browser after running
the sim, as I haven't figured out how to stop all the threads yet.
The Java Source
Code is available.
|