Click on the grid to turn the cell on or off. Hit the right arrow to go forward a generation. Press space to continually change generations. In each generation a cell dies if it has more than 3 alive neighbors or it has less than 2 alive neighbors. If a live cell has 3 or 2 alive neighbors it stays alive. If a dead cell has exactly 3 alive neighbors it becomes alive. Each cell has up to 8 neighbors.
all thanks t oASHVINI RAMANANTHAN