life_game {plot4fun}R Documentation

Life Game Simulation

Description

Life Game Simulation

Usage

life_game(
  save_file = NULL,
  size = 20,
  time = 20,
  fps = 0.75,
  colors = c("black", "green4"),
  ...
)

Arguments

save_file

gif filename

size

size of the world

time

how many times the life game continue.

fps

fps, 0.75

colors

c("green4", "black")

...

add

Value

a gif file

References

https://zhuanlan.zhihu.com/p/136727731

Examples


if (interactive()) life_game()


[Package plot4fun version 0.1.1 Index]