Description Usage Arguments Value Examples
View source: R/gol_simulate_input.R
Function that simulates Game of Life starting with a given input
1 | gol_simulate_input(board, loops, filename = "")
|
board |
input .csv for the simulation |
loops |
amount of iterations of the simulation |
filename |
output .gif filename, determines whether we want a live plot display or a saved .gif. FALSE by default |
.gif file of the simulation or live display of the simulation
1 2 3 4 5 6 | tf = system.file("exampledata/exampleboard.csv", package = "golr")
gol_simulate_input(tf, 50, "inputsim.gif")
gol_simulate_input(tf, 25)
unlink(tf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.