Conway's Game of Life 👾

🔗 Code Example: Conway’s Game of Life

🔗 References:

🔗 Timestamps:

  • 1:16 Creating a grid of random cell's state (dead or alive)

  • 5:49 Updating the state of the next generation of cells

  • 6:50 Creating a function to sum up the states of neighboring cells

  • 14:31 Wrapping the index value of neighboring cells using modulus %

  • 18:07 Creating a Grid class

  • 21:30 Creating 3 buttons: Play, Reset, and Random

  • 27:02 Using mouseDragged() to bring cells to life!

  • 32:18 Making it rain(bow)

Previous

Slime Molds (Physarum)

Next

Interactive Display with Rotating Blocks (UPGRADED)