playground · A1.2.1 / A1.2.3
Binary & logic gates
Three benches: flip real bits, race the conversions, and prove the seven gates to yourself with truth tables. Number systems · Logic gates
Eight bits
Each switch is a place value. The three readouts always agree.
decimal
0
binary
00000000
hex
00
Conversion race
streak 0 · best 0
A wrong answer resets the streak. Spacing and leading zeros are forgiven.
1hex
→ write it in decimal
Truth tables
Both inputs must be on. Fill the output column, then flip the switches to check your thinking.
try it live
AND(A, B)0
| A | B | Q |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
Tap the ? cells: first tap = 1, tap again to flip.