The Spaceship Cargo Lock
To secure the cargo, the LOCK must activate if either FUEL or POWER is active, but only when the ALARM is not sounding. The STATUS light turns on only if both FUEL and POWER are active simultaneously.
Replay this puzzle All puzzles
The truth table
Inputs on the left, outputs on the right. A circuit solves the puzzle when it reproduces every row.
| FUEL | POWER | ALARM | LOCK | STATUS |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 1 |
What the table tells you
- LOCK is 1 in 3 of the 8 rows. Every input matters: for each one there is a row where flipping it changes LOCK. The rows that turn it on: FUEL=0, POWER=1, ALARM=0; FUEL=1, POWER=0, ALARM=0; FUEL=1, POWER=1, ALARM=0.
- STATUS is 1 in 2 of the 8 rows. It does not depend on ALARM at all: flipping it never changes the output, so any gate reading it is wasted. The rows that turn it on: FUEL=1, POWER=1, ALARM=0; FUEL=1, POWER=1, ALARM=1.
The smallest known circuit: 4 gates
As a formula, one line per output:
LOCK = ((FUEL OR POWER) AND NOT ALARM)STATUS = (FUEL AND POWER)
As a netlist, in the order you would wire it. Each g is one gate; the last lines say which signal drives each output.
g1 = FUEL OR POWERg2 = NOT ALARMg3 = FUEL AND POWERg4 = g1 AND g2LOCK = g4STATUS = g3
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.
← #29 The Alchemist's Silver Filter · #31 The Automated Sorter Machine →