Game of Life Example Using a Script Element


A set of status elements is used to represent the states of cells that can have either a live state (green) or a dead state (red). At the start of the simulation, cell states are randomly assigned according to the initial live state probability specified by a slider control. On each time step of the simulation, a Script Element updates the states of the cells according to the following rules: (1) A live cell (green) stays alive if it has 2 or 3 live neighbors, (2) A live cell (green) dies if it has < 2 or > 3 live neighbors and (3) A dead cell (red) becomes a live cell if it has exactly 3 live neighbors.


Making Better Decisions In An Uncertain World