Page 1 of 1

Test-and-set with wire network?

Posted: Thu Nov 28, 2024 8:26 pm
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.