gol_simulate_input: GoL simulation from input

Description Usage Arguments Value Examples

View source: R/gol_simulate_input.R

Description

Function that simulates Game of Life starting with a given input

Usage

1
gol_simulate_input(board, loops, filename = "")

Arguments

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

Value

.gif file of the simulation or live display of the simulation

Examples

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)

wejengin2/golr documentation built on Dec. 23, 2021, 5:10 p.m.