Level/XOR Gate

From Turing Complete
Section Basic Logic
Type Component
Prerequisite Second Tick
Unlocks Bigger OR Gate
Bigger AND Gate
XOR
Truth tables
Universal gates
Online profile
Scored Yes
High score 7
API xor_gate (4)

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.