Report as inappropriate.
This version of Conway's Game of Life simulation has only one world class and no actor classes. The world class is 176 lines long; 33 of which are comment lines. It starts with a grid of 5625 cells (75 x 75) and can range from a 5 x 5 grid to a 100 x 100 grid using the arrow keys.
Aside from the arrow keys, the following keys are enabled:
"enter" - starts and stops the continuous execution of the life cycles
"space" - executes one single life cycle
"1" to "4" - zoom in on a quadrant of current visible grid
"escape" - zoom out from last selected quadrant
"x" - clears the grid of active cells
"c" - changes the color for the active cells
"p" - changes the absent color part of active cells
"r" - randomizes the grid of cells (turns aproximately 25 percent of them on; the others off)
"w" - toggles world-wrapping on and off
"g" - toggles showing of grid-lines on and off
You can also toggle the active state of a grid square by clicking the mouse on it.
The quadrants are numbered "1" for top-left, "2" for top-right, "3" for bottom-left, and "4" for bottom-right.
Want to leave a comment? You must first log in.
2012/12/12
2012/12/12
2012/12/12