Game Development Community

Life is pain...

by Frank Carney · 03/06/2007 (9:35 pm) · 4 comments

I have finally started testing my "war" algorithm for the life simulation I have been working on:
demolishun.net/images/warTestSize_000000.pngdemolishun.net/images/warTestSize_000005.pngdemolishun.net/images/warTestSize_000010.pngdemolishun.net/images/warTestSize_000015.pngdemolishun.net/images/warTestSize_000020.png
Here is a movie of it:
demolishun.net/images/warTest.mpg

The cool thing about the program is it can create structures that would not normally exist because the opposing cells. The cells will degrade each others counts if they are in proximity. Notice they never intermix, because they could not survive with the other cells. I plan on trying adaptations of the current algorithm. The current implementation will work with N number of cell teams.

I thought it was suitable that the colors I start testing with for the first two teams should be red vs blue. ; ) However, I just set the color for each team from script as cells are added.

About the author

I Started programming in HS and have never stopped. Now an 18 year vet of programming anything from assembler on a NES console to a nuclear waste processing system. If it can be programmed I may have tried to program it!


#1
03/06/2007 (11:52 pm)
Looking good! I've always found the whole idea of cellular simulation and the possibility for emergant behaviour very interesting. Frank, you might find this little Java artificial life program I did a few (9!) years ago interesting: www.it.nuigalway.ie/~sredfern/genetix.html
#2
03/07/2007 (3:53 pm)
Frank - remind me of the rules for War Life ?

Sam - hey, that's pretty neat. i like : #foods = 111 sizeFoods = 12 foodSpeed=5 initialAgents=2.
but it tends to freeze after a few hundred epochs.
#3
03/07/2007 (6:52 pm)
The rules are simple, same rules of life, but opposing cells reduce count rather than add. It is still pretty early to determine if this is what I want. I will try some other variations. Also, I am using the standard 23/3 rules.

Also, very cool link. I will have to see what is under the hood.
#4
03/08/2007 (12:14 am)
#foods = 200 sizeFoods = 5 foodSpeed=5 initialAgents=10 makes for nice screensaver effect - especially when your ears are pumping with goa trance!!! ;)