samedi 23 mai 2020

How to simulate Conway's Game of Life using Python [duplicate]

enter image description here

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