Conway's Game Of Life in Svelte 4

Hasn't this been done before?

Yes, a ton of times.

I had youtube on in the background the other day and I heard The Primeagen say something along the lines of "I've never built the game of life... maybe I should do that."

I said to myself "Hey! I've been wanting to do that too!"

So I did.

A few of my goals:

  • No dependencies past the SvelteKit skeleton project selections (typescript + prettier)
  • Utilize Svelte's features (components, derived stores, etc)
  • Make it interactive (you can draw on the game board to change the state live!)
  • A fluid game board / clean responsive design
  • Has to run well enough
  • Use the DOM to render the game to try and push Svelte a bit
  • No type-os on this page (it's late)

If you like my effort, give me a star on GitHub :)