Level/XOR Gate: Difference between revisions

From Turing Complete
m (Gelthor moved page Turing Complete/XOR Gate to Level/XOR Gate without leaving a redirect)
m (Use ON & OFF in truth table)
Line 9: Line 9:
}}
}}


{| {{Prettytable}}
{| {{TruthTable}}
|+ XOR Gate Truth Table
|+ XOR Gate Truth Table
|-
|-
! Input One !! Input Two !! Output
! Input 1 !! Input 2 !! Output
|-
|-
| {{No}}|| {{No}}|| {{No}}
| {{Off t}}|| {{Off t}}|| {{Off t}}
|-
|-
| {{No}}|| {{Yes}}|| {{Yes}}
| {{Off t}}|| {{On t}}|| {{On t}}
|-
|-
| {{Yes}}|| {{No}}|| {{Yes}}
| {{On t}}|| {{Off t}}|| {{On t}}
|-
|-
| {{Yes}}|| {{Yes}}|| {{No}}
| {{On t}}|| {{On t}}|| {{Off t}}
|}
|}



Revision as of 23:30, 1 September 2024

This level has you create the XOR Gate. It is like the OR gate except that it outputs false if both inputs are true.

Template:Achievement

XOR Gate Truth Table
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 0

The solution to this level requires more effort than just placing down a single NAND gate and some inverters.

The simplest solution, which is also required for the achievement, is to place four NAND gates. The first one has the input pins as the input, while the second and third have one of the input pins and the output of the first gate as the inputs. The final gate has the inputs hooked up to the second and third gate.