When trying to program Conway's Game of Life, is it okay to have a grid with unequal number of rows(>=2) and column (>=2) OR Is it mandatory to have equal number of rows and columns?
Number of Rows and Columns in Conway's Game of Life
0
$\begingroup$
algorithms
-
0(That said, the answer is 'yes, there's no reason they have to be equal'. Also, canonically things tend to be more interesting if you 'wrap' your grid and have periodic boundary conditions rather than an 'infinitely absorbing' sea of 0s surrounding it.) – 2012-08-07
1 Answers
3
There are many different implementations of Conway's Game of Life that depend on the structure of the grid. Quadtrees (used in Hashlife) are great for infinite grids. However, the "rules" of the Game of Life aren't specific as to the dimensions (if they exist) of the grid - it depends on what precisely you are programming.
The classic Game of Life, however, uses an infinite grid.
I agree that this question would get more and better feedback at Stack Overflow.