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?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
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.