#Conway's Game of Life
11 messages · Page 1 of 1 (latest)
Pretty happy with what I have so far, currently it's two buffers to store the game state, they're array of chars where each bit is a single cell
I'm excited for this. Especially since I'll learn how to use Clay
I just moved the arrays onto the heap so I can dynamically allocate them depending on the cell size
You could have the starting positions use the current time as a seed, so it's like the worlds worst clock 😆
I could also just have it show the time as the starting generation, then run it from there too 😅
I like that. And if it terminates or gets into a loop then it could restart showing the current time
Yeah though that gets complicated if you've got a 4-gen oscillator, or even like a period 3 and 5 oscillater together on the same board
I was thinking you could just shake to reset to the time again or something
Most boards stay in a 2 or 4 period oscillation pattern though, unless a glider gets spawned and edge wrap is turned on so that's probably a non-issue. I can just have a circular buffer of like length 10 and store the board hashes or something idk