powered by
Conway's Game of Life
Life(n.rows=100, n.cols=100, n.cycles=100, sleep.time=.1, cols=c("#f0f0f0", "#2f81c1"), rnd.threshold=0.3)
number of rows
number of columns
number of cycles
time for pause after each cycle
main colors
0 empty board; 1 all squares are filled
Please note that at the moment, the function is not interactive.
# NOT RUN { Life(10, 10, 10, .3) # }
Run the code above in your browser using DataLab