Learn R Programming

shipunov (version 1.0)

Life: Game of Life

Description

Conway's Game of Life

Usage

Life(n.rows=100, n.cols=100, n.cycles=100, sleep.time=.1, cols=c("#f0f0f0", "#2f81c1"),
 rnd.threshold=0.3)

Arguments

n.rows

number of rows

n.cols

number of columns

n.cycles

number of cycles

sleep.time

time for pause after each cycle

cols

main colors

rnd.threshold

0 empty board; 1 all squares are filled

Details

Please note that at the moment, the function is not interactive.

Examples

Run this code
# NOT RUN {
Life(10, 10, 10, .3)
# }

Run the code above in your browser using DataLab