Description Fields Methods Examples
A Reference Class to represent a Game of Life
board
Board-object to manage states and state-transistion
rule
Rule-object to control state-changes of the board
verbose
decide if basic information should be printed in each iteration
plot
decide if board should be plotted in each iteration
max_iterations
numeric to set the maximum number of iterations
endless
decide if game is endless
sleep_duration
set time to sleep for plotting
nextState()
Takes the game to it's next state
run()
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.