Description Usage Arguments Value Author(s)
Run John Conway's cellular automata Game of Life.
1 | game_of_life(seed, num_gens, board_size = 50, animate = TRUE, torify = TRUE)
|
seed |
An nx2 matrix containing the co-ordinates of |
num_gens |
An integer specifying the number of generations of evolution in the game. |
board_size |
An integer specifying the size of the 2D array. Defaults to 50. |
animate |
Logical indicating whether to animate the game (defaults to |
torify |
Logical indicating whether the board should be wrapped up into a torus to prevent inconsistencies at the edges (defaults to |
An object of class gameRlife
. Can be used for the side-effect of animating the cellular automata as they evolve.
Alex Kalinka, alex.t.kalinka@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.