Conway's Game of Life with Python

前端 未结 2 2067
萌比男神i
萌比男神i 2021-02-06 12:48

I took a liking to Conway\'s Game of Life and began to try and write it in python. At this moment I have yet to write any code for the borders of the program so I am just asking

2条回答
  •  醉梦人生
    2021-02-06 13:44

    You will need to swap D and C, and not just assign C to D. As it stands now, D and C will be referring to the same list after the first iteration.

提交回复
热议问题