Image:
Author: swiss.assault Group: Default Filesize: 6.78 kB Date added: 2011-04-22 Rating: 5.6 Downloads: 1186 Views: 944 Comments: 3 Ratings: 2 Times favored: 0 Made with: Algodoo before v1.8.5 Tags: life
|
Note: This works only with Algodoo.
Hello people,
This is a new version of conway's game of life.
Changes
I used now arrays to globally save which cells are alive and which ones are dead.
Unfortunately there is no way to do value assignments like array(3) = 1, so I had to arrange the cells in a way that they are ordered according to the sequence in which the lasers hit the cells.
Now the cells loop around the edges which makes the glider scene run forever.
What is it?
If you don't know Conway's "game of life" check out this page:
http://www.bitstorm.org/gameoflife/
Choose "Glider" from the drop down list there and press "next" several times.
Making a new scene:
It is now really nasty to change the number of cells in the scene.
However, if you want to choose which cells are alive and which ones are dead, first stop the scene from running.
Change the color of the ones you want dead to [0,0,0,1] and the color of the living ones to [0,1,0,1].
Important: Make sure you do not change the color of the lasers in the lower right corners of the cells to [0,0,0,1] or it won't work.
Then open the console (press key below Esc) and write:
Scene.my.array = []; Scene.my.clock = false;
Press Enter and leave the console. Now it should work.
Best regards,
swiss |