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

9

Comments

You must log in or register to comment.

toasthaste wrote

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

3

twovests OP 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

3

voxpoplar wrote

Oh I love Life this is really cool

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

4

musou wrote

this is so neat. i haven't seen CGOL with multiple cell types before.

2

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

3

lainproliant wrote

Wow, It's absolutely mezmerizing. Thanks for sharing!

2

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

1