filmov
tv
Game of Life: program presentation (HTLM, CSS, JavaScript)

Показать описание
Game of life is simulation of simple model of life. The simulation takes place on board divided into square cells. Cells can be "alive" or "dead"("1" or "0" - white or black). Succesive generations are moments of time. There are 2 rules of calculating next generation:
- "dead" cell which has exacly 3 "alived" neighbors, becomes "alived".
- "alived" cell with 2 or 3 "alived" neighbors stays "alived"; in another case cell dies.
- "dead" cell which has exacly 3 "alived" neighbors, becomes "alived".
- "alived" cell with 2 or 3 "alived" neighbors stays "alived"; in another case cell dies.