On the Subject of Three-Way Gates
There are more than just 16 operators now?
This module consists of a center bulb, 3 inner bulbs, and 9 outer bulbs. Each triplet of outer bulbs is linked to an inner bulb, and the three inner bulbs are connected to the center bulb.
Each bulb represents a boolean value. If the bulb is lit (blue or greener than the rest), its value is true, otherwise it is false.
The value of the inner bulbs depends on their triplet of outer bulbs, as well as the operator of a three-input boolean logic gate inscibed inside it. Order the inputs in ascending order (depending on the digits inscribed on the outer bulbs), then arrange them using the table below. To get the output of the logic gate, take the operator’s position in the table below (read from left to right, top to bottom, first element is n°0) and convert it to an 8-bit binary number. The most significant bit represents the top row (all inputs are false) and the least significant bit the bottom row (all inputs are true).
Do the same thing for the center bulb, with the inner bulbs as the inputs. To get the order of the inputs, associate the number of batteries for the top bulb, the number of indicators for the south-east one, and the number of ports for the south-west one. Using this, arrange them in ascending order. In case of a tie, the left-most input is the one that you calculated first (top, south-east, south-west).
Inputs | |||
---|---|---|---|
0 | 1 | 2 | Output |
0 | 0 | 0 | MSB |
1 | 0 | 0 | |
0 | 1 | 0 | |
1 | 1 | 0 | |
0 | 0 | 1 | |
1 | 0 | 1 | |
0 | 1 | 1 | |
1 | 1 | 1 | LSB |