Skip to main content

Timeline for Game of life(random generation)

Current License: CC BY-SA 4.0

8 events
when toggle format what by license comment
Apr 1, 2023 at 12:10 history edited DeathIncarnate CC BY-SA 4.0
added 50 characters in body
Apr 1, 2023 at 12:08 comment added DeathIncarnate @obataku Hence why I said "If it were a single list,"
Apr 1, 2023 at 2:34 comment added obataku @DeathIncarnate [" "]*self.height*self.width is a list of strings, not a list of lists; i.e. the matrix is flattened to 1D, not 2D
Mar 31, 2023 at 13:58 history edited DeathIncarnate CC BY-SA 4.0
added 81 characters in body
Mar 31, 2023 at 13:56 comment added DeathIncarnate Good point! I forgot that. Will fix it.
Mar 31, 2023 at 13:52 comment added Alex F You mention how one should use [[obj() for _ in range(self.width)] for _ in range(self.height)] for mutable objects, yet you suggest to create several copies of the same list with [[" "] * self.width] * self.height...
Mar 30, 2023 at 7:14 history edited DeathIncarnate CC BY-SA 4.0
added 92 characters in body
Mar 29, 2023 at 23:44 history answered DeathIncarnate CC BY-SA 4.0