HomeToolsLogic Forge
How to play
① Click a gate → click canvas to place
② Click a green dot then a blue dot to wire
③ Click A / B / C to toggle & test
④ Match every truth-table row
⑤ Right-click = delete

Solved!

★★★

Logic Forge — the Logic Gate Puzzle Game

Logic Forge is a free browser puzzle game that teaches Boolean logic by playing. Each level hands you a target truth table and a limited set of logic gates (AND, OR, NOT, NAND, NOR, XOR). Your job: drag gates onto the canvas, wire the inputs through them to the output, and make your circuit match every row of the table. Hit the par gate count and you earn three stars.

Why a logic puzzle game beats memorising truth tables

Anyone can memorise that XOR is 1 when inputs differ. But building XOR out of four NAND gates, or making a 2-of-3 majority voter, or a 2:1 multiplexer from scratch, forces you to actually understand Boolean algebra, universal gates and circuit minimisation. The live truth table shows exactly which input combinations you have right and which you still have wrong, so every wire you add gives instant feedback.

What you'll practise

How to play

FAQ

Is Logic Forge free?

Yes — it runs entirely in your browser, no install or signup. Progress and stars are saved locally on your device.

What's the "par" gate count?

Par is the gate count of a good, minimal solution. Solve the level at or below par for three stars; a few gates over still counts as solved with fewer stars.

Want a free-build sandbox?

Try the Logic Gate Simulator for an open canvas with flip-flops, clocks, a 7-segment display and waveform probes.

Related: Logic Gate Simulator · Digital Electronics · FSM Designer

About Logic Forge — Learn Boolean Logic by Playing

Logic Forge turns the fundamentals of digital logic into a puzzle game. Instead of memorising truth tables, you build circuits from logic gates to match a target behaviour, developing real intuition for how AND, OR, NOT, XOR and their combinations produce any function you need. It is the same reasoning that underlies every digital chip, learned by doing.

Each level gives you a goal — a truth table or output pattern — and a set of gates to wire together. Solving it means thinking like a hardware designer: decomposing a problem into logic, minimising the gates you use, and testing your solution against every input combination. The result is a playful but genuine path into combinational design.

What you practise

These are exactly the skills that K-maps, Boolean algebra and RTL design formalise later. If you enjoy Logic Forge, move on to our logic-gate simulator to build larger circuits, and the Karnaugh-map solver to see how the same functions are minimised on paper. Learning logic should be hands-on — this is the fun way in.