A Reference Class to represent a Game of Life
Board-object to manage states and state-transistion
Rule-object to control state-changes of the board
decide if basic information should be printed in each iteration
decide if board should be plotted in each iteration
numeric to set the maximum number of iterations
decide if game is endless
set time to sleep for plotting
Takes the game to it's next state
Iterate game constantly until maximum number of iterations is reached or endlessly
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.