Minecraft – How to make a redstone circut that compares 6 inputs

minecraft-java-editionminecraft-redstone

i do have 6 inputs. 3 A inputs, 3 B inputs. Each one of them can be set to on or off. I now have to compare those 6 and look who has more on-inputs. A or B?

Does anyone have a solution for this?

What i've tried so far:

  • For each A and B, make a dropper counter, that stores up to 3 items. Everytime one A input gets on, it puts one item in the "on" Dropper, whereas when one A-input goes off, it takes it again. After that i have 2 Droppercounters to compare with Comparators. Problem: Goes far to big for my survival map. Don't like that solution.

  • I thought of something like this – haven't tried it actually. Make a 15 signal strength input and feed it to a comparator set to subtraction mode. Now feed all the 3 A inputs into this main line and subtract their power. We get an output ranging from 12 to 15 (12 meaning A has 3 inputs on, 15 meaning A has 0 inputs on).

  • Looked up all the logic gates. There might be one for comparing 6 inputs etc. Haven't found one.

I am trying to make the redstone simple and small!

Best Answer

I'm not sure why you didn't do your second idea, but it is actually pretty straight-forward:

enter image description here

Torches are the six inputs; lamps are output: ON-OFF = tie; ON-ON = bottom wins; OFF-OFF = top wins