The Robot Toy Workshop
A tiny robot needs instructions. The MOTOR runs if POWER is on and either GEAR or AXLE is spinning, but never if the SAFETY switch is active.
Replay this puzzle All puzzles
The truth table
Inputs on the left, the output on the right. A circuit solves the puzzle when it reproduces every row.
| POWER | GEAR | AXLE | SAFETY | MOTOR |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 0 | 1 | 0 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 |
What the table tells you
- MOTOR is 1 in 3 of the 16 rows. Every input matters: for each one there is a row where flipping it changes MOTOR. The rows that turn it on: POWER=1, GEAR=0, AXLE=1, SAFETY=0; POWER=1, GEAR=1, AXLE=0, SAFETY=0; POWER=1, GEAR=1, AXLE=1, SAFETY=0.
The smallest known circuit: 4 gates
As a formula, one line per output:
MOTOR = ((POWER AND (GEAR OR AXLE)) AND NOT SAFETY)
As a netlist, in the order you would wire it. Each g is one gate; the last line says which signal drives the output.
g1 = GEAR OR AXLEg2 = NOT SAFETYg3 = POWER AND g1g4 = g3 AND g2MOTOR = g4
The search ran out of budget before it could rule out every smaller circuit, so 4 is the best anyone found, not a proof. If you build it in fewer, the leaderboard records it. Gates that do not feed an output are never counted.
Leaderboard for the day
Nobody posted a result on the day. The circuit above is the reference.
← #18 The Coffee Machine Logic · #20 The Bank Vault Lockdown →