DEV Community


Posted on

Game of Life debugging: new state function returning empty array

The code generates a random array (random_state function). It does not however produce an array of next generation (next_state function).

Initially, my new_state function was working until I tried to animate the Game of Life. My animate function did not work so I started to run every single function untilโ€ฆ

Top comments (0)