Play Logic Gates Online
Build little digital circuits that light the lamp at exactly the right moments, from a single AND gate up to an adder. Free to play right here, with no download.
How to play Logic Gates
On the left are input switches, on the right are output lamps, and in between are empty slots for gates. Place gates from your limited set, then connect them with wires: from a switch or gate output to a gate input or lamp. The truth table under the circuit tries every combination of the switches and marks each column with a tick or a cross. When every column shows a tick, the puzzle is solved. Levels grow from single gates to a half adder, a multiplexer, a comparator and a full adder, and Sandbox gives you unlimited gates to experiment.
Controls
- Phone: tap a gate type, then an empty slot. Tap a right-hand dot, then a left-hand dot to draw a wire. Tap a gate or wire to remove it, and tap the switches or a truth table column to test.
- Keyboard/mouse: click in the same way. Keys 1 to 4 flip the input switches and Esc cancels a selection.
Tips
Read the goal as a sentence: "and", "or" and "not" usually map straight onto gates. One output can feed several inputs. Click any column of the truth table to set the switches to that row and watch which wires light up. Solved levels get a tick, and your circuits are saved in the browser.