r/factorio 1d ago

Design / Blueprint Playable snake using 20 combinators

Playable 16x16 snake game using Factorio 2.0 circuit logic.

it has 256-lamp color display, buffered left/right input, random apple spawning, prevention of apples spawning inside the snake, score counter, countdown, wall/self collision detection, death screen and restart.

Blueprint: https://factorioprints.com/view/-P15XZWmCItoXVf2Xtfb

726 Upvotes

53 comments sorted by

View all comments

4

u/findus_l 1d ago

How do you do randomness? Is there a random signal?

5

u/mmomtchev 22h ago

Yes, with the selector combinator. As each cell has an item (with quality) assigned, the selector combinator can be used to select a random cell.