Posted: 4th Feb 2004 3:56
This is one of the first algorithms ever "written." It was actually developed by some mathmatitions at oxford... or something... but anyways its a very simple way to simulate how cells live. If a "cell" (dot) is being touched by more than 3 cells it dies of crowding, and less than 3 it dies of overexposure. This is very interesting (although extremely freak'n slow) and actually looks like cells or mabey a forest growing after a while.
Posted: 5th Feb 2004 7:23
Dose not work.
Posted: 5th Feb 2004 8:29
I did this one too. In fact it was the first thing I did with Darkbasic Pro after buying it. I haven't programmed anything for over ten years and the last language I used was pascal and the bare surface of C.

The "Game" was written by John Conway, a mathematician, and it is supposed to represent a sort of survival of cells. Actually it's a good represntation of how simple causes can have large results seemingly independent of the cause. Sort of an analogy of life. That's why it's often called Conway's game of Life.

Rules:
Isolated cells (one neighbor or less) die of loneliness, and crowded cells (4 or more neighbors) die of overcrowding. A blank space with three neighbors spawns a new cell.

I attached my code....some of it shows that I was at an early stage of learning this software, so please excuse blatant crap code. >>RETURN<< key resets it.

Oh..I also did a 3D version that you can fly through while it's going and the problem is they never die! hehe...not really a problem...
Posted: 9th Feb 2004 2:23
dammit i wish i could see it, looks really good! alas! I don't have Dark Basic Pro only Enhanced. Oh well sux 4 me, i'm just too lazy to actually buy it.
Posted: 11th Feb 2004 16:22
Heres a working version for DBP

You might want to make it use memblocks to make it faster
Posted: 12th Feb 2004 17:34
What the heck does it do?
Posted: 17th Feb 2004 15:51
It simulates life...
Posted: 17th Feb 2004 16:40
Well... i don't know who's life this is but... it isn't very much fun. The screen stays black and it doesn't do anything. Hmm... sounds like mine

I use DBP by the way.
Posted: 17th Feb 2004 19:22
I remmber that thing : I had to do it the first year I went to University, in ThinkPascal. The funny thing was that the teacher could do such things, but couldn'T change the color of it.