#Conway's Game of Life

11 messages · Page 1 of 1 (latest)

white pagoda
#

I want to eventually have a couple presets to pick from. Currently it's just random, and then shaking the watch randomises the board again. App settings will include cell size, animation speed, and whether to wrap the edges or not. I'll be a nice excuse to finally learn app config stuff

#

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

white pagoda
#

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

flint vault
#

You could have the starting positions use the current time as a seed, so it's like the worlds worst clock 😆

white pagoda
#

I could also just have it show the time as the starting generation, then run it from there too 😅

modest elm
#

I like that. And if it terminates or gets into a loop then it could restart showing the current time

white pagoda
#

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