Test-and-set with wire network?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Abnaxis
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Oct 11, 2020 2:35 am
Contact:

Test-and-set with wire network?

Post by Abnaxis »

I have some circuit logic, which generates a list of items with ones in them (say, 1 iron, 1 iron gears, 1 green circuits).

I have a wire network, which I want to be the result of wiring together multiples of the first network, where each member:
  • Checks the network
  • Adds one item to the network from their list if the network is empty
  • Adds to the network if an item in the network matches theirs
  • does nothing otherwise
This seems like a job for the selector combinator? Take index 0 from each member, do member<=network in a decider combinator, and add it to the network? It's not ideal, but it's the best I can think of.
Post Reply

Return to “Gameplay Help”