life
runs Conway's Game of Life, using standard rules.
1 | life(size, ngen = 1000, update.freq = 10)
|
size |
(numeric) the size of the board (the length of its sides). |
ngen |
(numeric) the number of generations to run. |
update.freq |
(numeric) specifies the number of generations between plot updates (since plot updates are by far the slowest here, plotting results too often can become quite slow). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.