Course catalogue

Lab0 / Learn, build, explore

Logic playground

Build circuits from gates. Learn a 4-bit calculator, then make it your own.

0/6 checkpoints passed · Progress saved in this browser

01 / Tiny switches

Meet the bits

A bit is a switch: off is 0, on is 1. Four switches have place values 8, 4, 2, 1, so they represent numbers from 0 to 15. The rightmost switch is bit 0. Use the A and B controls in the circuit editor. The result is computed by the gates and wires you can edit.

Your mini mission

Make A = 9: turn on the 8 and 1 switches. Make B = 3: turn on 2 and 1.

Drag parts onto the canvas. Connect pins to wire.
A00Y
OutputsY 0
Truth table
AY
00
10

Pocket checkpoint

Which four bits represent decimal 9?

Choose an answer
1 / 6
Next adventure: BFS and the magical queue