artificial life
Chapter 3: Cellular Automata
3.4 Conway’s Game of Life Applet
A Java Applet that allows the user to observe the behavior of a Game of Life lattice is implemented for this project.
The applet initializes a random configuration of the lattice when the user starts the applet. When initialization is finished the applet progresses the CA through generations. The user can interact with the system using the controls at the bottom of the applet.
Random: Will re-initialize the lattice with a completely random configuration.
Clear: “Clears” the lattice by setting all the cells to an “off” value.
Pause: Starts and stops the progress of the CA.
Step: Allows the CA to progress one generation, or step.
Cursor Draw: If this value is checked then clicking on a cell will set that cell to an “on” state, without it checked clicking will set the cell to “off”.
Source Code for Game of Life Applet: