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

Color Gradient Animation #2 (lerpColor Function)

Next

Falling Hearts ๐Ÿ’•๐Ÿ’• (Valentine's Day Specials)