Given a board of any size/aspect-ratio, determine the condition of a given cell (alive or dead?) at a given position in the next generation based on how many living cells are surrounding it. Neighbouring cells can be cells above, below, to the left, right or diagonally. i represents the row and j represents the columns.
Aucun commentaire:
Enregistrer un commentaire