...

/

Coding Example: Game of life (NumPy approach)

Coding Example: Game of life (NumPy approach)

This lesson discusses the case study Game of life and explains its solution using NumPy approach.

We'll cover the following...

NumPy Implementation

Starting from the Python version, the vectorization of the Game of Life requires two parts,

  • one responsible for counting the neighbors
  • one responsible for enforcing the rules

Neighbor-counting is relatively easy if we remember we took care of adding a null border around the arena. By considering partial views of ...

Access this course and 1400+ top-rated courses and projects.