Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

for an extension I made a conway cell. I had to tell this cell to update based on the rules of the game of life, but the part of adding new cells based on the arrangement was tricky. I had to make a new landscape, loop thru the spaces create a temporary new cell at each, check that new cells neighbors were it on its neighbors off the old landscape, decide if the new cell is a true offspring, then add the cell to the new landscape for real. Then I applied the rules of the game of life, reading the original landscape but only writing to the new. As usual, the algorithm was relatively simple but the debugging took a lot of time. I had a lot of trouble with the fact that a conway game takes integers for the cell's location, so I had to eventually overload the abstract cell constructor with another one for ints.

...