logoalt Hacker News

Show HN: Stacked Game of Life

163 pointsby vnglstlast Saturday at 4:28 PM26 commentsview on HN

https://github.com/vnglst/stacked-game-of-life


Comments

ralferootoday at 11:18 AM

This is the kind of visualisation that obvious in retrospect, but I don't think anybody's done this before. Very nice.

I think the only change I'd make really is to give the top layer and obviously different colour so you can view from the top and see the current configuration. Currently it just looks confusing because e.g. a - oscillator looks like + instead.

show 2 replies
vanderZwantoday at 3:17 PM

Very nice visualization!

I thought this was going to be like a Game of Life variation I came up with about 15 years ago where you stack multiple layers of 2D Cellular Automata, allow each layer to have their own rule set, do single steps of each and then define the interactions between the layer as applying Boolean operations before doing the next step (e.g. set layer 1 = 1 xor 2, layer 2 = 1 xnor 2).

I'm pretty sure that's effectively a subset of what you can encode with a multi-state CA (you can after all interpret each layer as a "bit", so e.g. with two layers each point can be in "four states", meaning any give combination of rulesets ber layer + masking operation should have an equivalent four-state CA, but I never bothered to figure out how one would map from one to the other, and then the hard drive where the code was stored crashed so I forgot about it.

boomlindetoday at 12:20 PM

Hmm, shouldn't this pattern be perfectly stable?

     o
    o o
     o
In this simulation it seems to oscillate between two patterns.

Very interesting visualization either way!

show 2 replies
WillMorrtoday at 2:31 PM

Very nice visualization, the fade out really adds to the organic feel.

I've been playing with a similar system but designed for 3d printing, it's simple to make it self-supporting by just drawing a line from each parent to each child which is neat.

VibeSchemalast Saturday at 8:20 PM

What does stacked mean? Is this just 3D game of life where cells die unless 5-6 neighbours and come alive with 4 neighbours? But very cool, would also be cool if you could specify initial configurations perhaps. (BTW, github link seems broken.)

show 1 reply
freetoniktoday at 10:07 AM

Very cool! Would be great to be able to rotate/zoom the 3D space.

show 3 replies
perilunartoday at 10:04 AM

Very cool!

huhtenbergtoday at 2:38 PM

I am a simple man. I see Game of Life in the title, I upvote the post.

builderhq_iotoday at 3:00 PM

[dead]