powered by
Conway's Game of Life
Life(n.rows=40, n.cols=40, n.cycles=100, sleep.time=0.05, 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, this function is not interactive.
# NOT RUN { Life(10, 10, 10, .3) # }
Run the code above in your browser using DataLab