Combinator Game of Life

Post pictures and videos of your factories.
If possible, please post also the blueprints/maps of your creations!
For art/design etc. you can go to Fan Art.

Post Reply
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Combinator Game of Life

Post by DaveMcW »

Image

I built a factory that plays Conway's Game of Life.

The game has three simple rules that govern cell life cycle.
  • if neighbors = 3, then cell is born
  • if neighbors = 2, then cell does not change
  • if neighbors = anything else, then cell dies
That is easy to simulate, but I want to make it even easier. So I subtract 1 from both sides.
  • if (neighbors - 1) = 2, then cell is born
  • if (neighbors - 1) = 1, then cell does not change
  • otherwise, cell dies
The rewritten rules are simple enough to program in two decider combinators.

Image

With the rules in place, I can build a complete cell.

Image

I use 4 arithmetic combinators, to prevent neighbor cell wires from touching. Only one of them is actually used to subtract 1. They are spaced far apart to be able to reach all 8 neighbor electric poles.

Since I use wires of both colors to connect to neighbors, I need to alternate the primary color of each cell. The final blueprint is a checkerboard pattern.

Image
Blueprint String
It runs at 2 ticks per frame, or 30 Hz.

Setting the initial pattern using combinators would be a nightmare, so I use the console. You need to run the setup program twice. The first run sets the pattern, the second run starts the simulation.
Setup Program
Here is the save file with the final factory.
Game-of-Life.zip
(4.6 MiB) Downloaded 617 times

Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: Combinator Game of Life

Post by Choumiko »

Just freaking wow! :o :D

Lupoviridae
Fast Inserter
Fast Inserter
Posts: 155
Joined: Mon Apr 20, 2015 6:26 pm
Contact:

Re: Combinator Game of Life

Post by Lupoviridae »

Beautiful and well done! I was planning on building a GoL in my world but you beat me to it :D

DRE
Inserter
Inserter
Posts: 41
Joined: Sun Jan 25, 2015 2:30 pm
Contact:

Re: Combinator Game of Life

Post by DRE »

THIS has began.
And it will not stop until someone creates full x86 CPU emulation XD

User avatar
Stickman
Inserter
Inserter
Posts: 40
Joined: Fri Jul 17, 2015 2:34 pm
Contact:

Re: Combinator Game of Life

Post by Stickman »

So where's the gifv or the video?
I tried snorting coke once. The ice cubes got stuck up my nose.

User avatar
Gandalf
Filter Inserter
Filter Inserter
Posts: 294
Joined: Fri Dec 19, 2014 10:15 pm
Contact:

Re: Combinator Game of Life

Post by Gandalf »

Dude I wanna hug you so hard right now!

So when are you gonna implement hashlife? x)
OS: Linux Mint 19 x64 | desktop: Awesome 4.2  |  Intel Core i5 8600k  |  16GB DDR4  |  NVidia GTX 1050 Ti (driver version: 410.104)    (2019-03)

Lee_newsum
Filter Inserter
Filter Inserter
Posts: 436
Joined: Wed Jan 15, 2014 9:41 am
Contact:

Re: Combinator Game of Life

Post by Lee_newsum »

well that is v good, i playing with in une..... :geek: i had so thorts can you pull the config from Smart chest, 1 Smart chest for each cell. and you can have a reseat chest, would that work?

as for an input system you can use "z" to put an item down if you put were an Inserter can get it and put it in a chest, you have a in put system :D :geek:

Zhab
Fast Inserter
Fast Inserter
Posts: 101
Joined: Sat Jul 18, 2015 10:17 pm
Contact:

Re: Combinator Game of Life

Post by Zhab »

Very impressive.

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Combinator Game of Life

Post by Adil »

You sir are amazing.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

aka13
Filter Inserter
Filter Inserter
Posts: 683
Joined: Sun Sep 29, 2013 1:18 pm
Contact:

Re: Combinator Game of Life

Post by aka13 »

Impressive, very nice!
Pony/Furfag avatar? Opinion discarded.

Post Reply

Return to “Show your Creations”