9

Game of Life with three species (gif) i.imgur.com

Submitted by twovests in programming

I made a Conway's Game of Life clone that has three species! Red preys on green, green preys on blue, blue preys on red. On their own, they interact just like the normal game of life.

I'd share the source code but I put it on my Github with personally identifiable info so lol

Comments

You must log in or register to comment.

4

eep wrote

oh this is really cool

we were designing buildings based on 3D cellular automata a few years back but could never get the coding right so we just flubbed most of it

3

twovests wrote

this sounds like it'd be a fun project, are you willing to share the details? :0

3

eep wrote

aaa it’s been ages but I’ll try! it was half fun and half frustrating mostly cause none of us had programming backgrounds. we had an instructor who taught programming, but he did not have a design background so it’s a bunch of misunderstandings lol

the basic idea was to ‘grow’ a city using cellular automata but also avoiding specific areas like historical buildings, places of culture (this didn’t work because our general lack of skills, which resulted to rigidity) there’s also the lack of connectivity (since cells in cellular automata ‘die’ and don’t physically connect while they are alive) so there was the introduction of other systems like lindenmeyer system to permit branching

the result was somewhat similar to the cards bouncing around and intertwining when you finish a game in solitaire

1

butthole69 wrote

what kind of class/program was this? that sounds super interesting!

1

eep wrote (edited )

soz for the super late response. It’s in architecture I think I got the studio’s course outline Also the portfolio of the whole thing if you are still interested

3

toasthaste wrote

how does the normal game of life work? I've never heard of it before, it sounds neat :0

3

twovests wrote (edited )

https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

It's an old thing that's relevant in computer science theory and is popular among nerds.

The rules:

  • There's a grid of cells. Each cell can be either alive or dead.

  • Each cell has eight neighbours.

  • Any live cell with two or three live neighbours survives to the next generation. Else, it dies.

  • Any dead cell with exactly three live neighbours becomes a live cell.

Different combinations of cells do different cool things. A game of life is turing complete, meaning it can (theoretically) be used to do any algorithm "real" computers can do.

My addition doesn't mean anything much, it's just shitty fanfiction. :D