Projects / Ideas / Game of Life on a matrix

Game of Life on a matrix

BeginnerLearningIdeaReviewed
In short

How do you build a game of Life on a matrix?

A grid of lights lives, dies and breeds by Conway's simple rules, and patterns such as a glider walk across an 8 by 8 matrix. A button seeds a new random pattern. A wonderful example of simple rules making complicated life. You need Arduino Nano, WS2812B 8x8 RGB LED matrix, Tactile push button 6 mm, Resistor 330 Ω, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

Level
Beginner
Time
About 90 min
Parts
6
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Watch cells live and die on a matrix.

How to build it

  1. Store the grid as eight bytes
  2. Count each cell's live neighbours
  3. Apply the birth and death rules
  4. Wrap the edges
  5. Reseed with a button when it stops changing

Related projects

Common questions

What parts do I need for the game of Life on a matrix?

Arduino Nano, WS2812B 8x8 RGB LED matrix, Tactile push button 6 mm, Resistor 330 Ω, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the game of Life on a matrix take to build?

About 90 minutes for a beginner maker.