?

Logic Gate Game

The goal of this game is to change the wires connecting each of the logic gates shown so that the circuit is fully connected without any logical contradictions.

Clicking on a wire will change it to be ON or OFF. A wire is ON if it is white, a wire is OFF if it is black. Gray wires haven't been set ON or OFF yet, and you'll need to assign them correctly to complete the circuit.

Wires that are dotted lines cannot be changed, so you will need to work around them in order to make a functional circuit. Click on the "Check Logic" button to see if your work is correct! Continue reading to see how different logic gates work.

Input A Input B Result
ON ON ON
off ON off
ON off off
off off off

AND gates only produce a positive output (ON) if both of the wires going in on the left side are positive (ON). Note that the order of the wires doesn't matter when taking into account the output, we just need to examine how the inputs interact with each other.

Input A Input B Result
ON ON ON
off ON ON
ON off ON
off off off

OR gates produce a positive output (ON) if even one of the wires going in on the left side is positive (ON). This means there are 3 possible scenarios where an "OR" gate will produce a positive output.

Input A Input B Result
ON ON off
off ON ON
ON off ON
off off off

XOR gates are a little complicated. If EXACTLY one of the input wires is positive, the gate will produce a positive (ON) output. If BOTH of the input wires are positive, the gate will leave a negative/dead (OFF) output.

Input A Input B Result
ON ON off
off ON ON
ON off ON
off off ON

NAND gates are the logical opposite of an "AND" gate; NAND gates only produce a positive (ON) output when at least one of the input wires is OFF/negative. These gates and other "Negative" gates will only appear if you have toggled the "Enable Negative Gates" button at the top of this page.

Input A Input B Result
ON ON ON
off ON ON
ON off ON
off off ON

NOR gates will only produce a positive output (ON) if BOTH one of the wires going in on the left side are negative (OFF). They are similar to AND gates in that regard; it requires 2 specific inputs in order for the gate to produce a positive (ON) output.

Input A Input B Result
ON ON ON
off ON off
ON off off
off off ON

XNOR gates are a little complicated, much like the XOR gate. If the input wires match, the gate will produce a positive (ON) output. If the input wires are different from each other, the gate will leave a negative/dead (OFF) output.