Given that count, apply the rules and return the next generation as a uint8 arr…
NumPy · from Capstone: Conway’s Game of Life, without a single loop
np.rollboolean masksastypeshifted sumswrap-aroundsimulationPutting the kettle on…
Starting up…
Exercise 3
Given that count, apply the rules and return the next generation as a uint8 array: alive where the count is exactly 3, or where the cell is already alive and the count is exactly 2.
your answer
stuck? the lesson behind it
Capstone: Conway’s Game of Life, without a single loop
A whole simulation in two lines of array arithmetic.