Life cycle

This course is in C++ each language is great to learn with but c++ is allot more fun at times since you have direct access the memory locations of variables :).

Anyway, here is the assignment 1, life cycles, I have included the full source code in the zip file attached. Life cycle, is when you have cells within a grid and the rules are (as taken from the assignment 1 PDF file within the zip file) where the neighbours are a 3 x 3 grid around the cell in question

The simulation starts with an initial pattern of cells on the grid and computes successive generations of cells according to the following rules:

  • 1. A location that has one or fewer neighbors will be empty in the next generation. If a cell was in that location, it dies of loneliness. Sad!
  • 2. A location with two neighbors remains “stable”

    Tags:

Leave a Reply