![]() We can think of an alive cell as a mine, and its neighbors storing the number of mines that are closest to it. ![]() In a different perspective, however, Conway’s game of life is very similar to the game minesweeper. In addition, the current state of all cells determines which cells will die, continue to live, or be born in the next generation in accordance to the rules found above. Each grid block can be thought of as a cell, which not only stores a Boolean value (dead or alive) to describe the cell’s status, but also details its location via its coordinates. This 2-Dimensional grid represents a group of n*n number of cells. Let us first imagine the Game of Life as a n x n grid (we will also assume that this grid has coordinates such that the bottom left hand corner is denoted as (0,0) and the top right hand corner is denoted as (n,n) where n is a positive integer).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |