Learn R Programming

plot4fun (version 0.1.1)

life_game: Life Game Simulation

Description

Life Game Simulation

Usage

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

Value

a gif file

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

References

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

Examples

Run this code
# \donttest{
if (interactive()) life_game()
# }

Run the code above in your browser using DataLab