Last answered:

25 Mar 2025

Posted on:

24 Mar 2025

1

Conway's Game of Life Project - Problem Generating Pattern

Hi team,

Thanks for your hard work. Can you please confirm that the question from the quiz below does in fact work as expected? I have been over my code's logic a few times now and all appears to work exactly as I expect. I am testing on a small sample size, 5 x 5, as the 30 x 30 grid is a beast.

But I am not able to generate one of the four patterns shown in the answer.

If I have a bug in my code, I'm happy to keep working through debugging it until I fix it. But I also want to confirm that the game of life logic, as explained in the instructions, and as implemtned properly in the code, produces one of the four patterns shown in the answer to this question.

Please confirm this for me! Thanks!


Create a 30××30 grid and populate it with live cells at the following points:

[(14, 15), (15, 15), (16, 15), (15, 14), (16, 16), (14, 16), (15, 17)]
Note: The data is organized in the following format: (row, column). For example, (14, 15) corresponds to the point located at the 14th row and 15th column.

Run the game until it reaches a steady state (no further changes occur), and record the final pattern of live and dead cells.

Which of the following images represents the steady state of the game?
2 answers ( 0 marked as helpful)
Instructor
Posted on:

25 Mar 2025

0
Hey Justin,

Thank you for reaching out and for engaging with the project! I hope you've had fun implementing the Game of Life.

Let's first see if we begin the exercise with the same pattern. 


Provided we agree on the starting pattern, you should obtain the following figure after 16 steps.
 
Let me know if you observe different results.

Kind regards,
365 Hristina
Posted on:

25 Mar 2025

1

Thank you so much! I have since realized my error. I was updating the grid in real time and this does not work. I had to store all the values first and then update them only after i had iterated over the entire grid. 


thanks for the reply i really appreciate it!

-Justin

Submit an answer