Game of Life - Overwriting the current generation instead of updating to the next
问题 Below I have added my game of life code. The rules are defined correctly, and it runs smoothly. However, the game does not work as supposed. It is not updating to the next generation, but it seems to be overwriting the current generation. As an example: Three horizontal dots are supposed to turn into three vertical dots in the next generation, but this does not happen. The solution: I have two generations, the current and the next generation. It has to apply the rules to the current