Description Fields Methods Examples
A Reference Class to represent a Game of Life
boardBoard-object to manage states and state-transistion
ruleRule-object to control state-changes of the board
verbosedecide if basic information should be printed in each iteration
plotdecide if board should be plotted in each iteration
max_iterationsnumeric to set the maximum number of iterations
endlessdecide if game is endless
sleep_durationset 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.