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
- if (neighbors - 1) = 2, then cell is born
- if (neighbors - 1) = 1, then cell does not change
- otherwise, cell dies
With the rules in place, I can build a complete cell.
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.
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.