The Garden Sprinkler Logic
When RAIN is absent and the TIMER is active, the SPRINKLER must turn on. The SPRINKLER stays off if it is currently raining.
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.
| RAIN | TIMER | SPRINK |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
What the table tells you
- SPRINK is 1 in 1 of the 4 rows, so it is a single AND-shaped condition: one exact combination of the inputs. Every input matters: for each one there is a row where flipping it changes SPRINK.
The smallest known circuit: 2 gates
As a formula, one line per output:
SPRINK = (NOT RAIN AND TIMER)
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 = NOT RAINg2 = TIMER AND g1SPRINK = g2
The search ran out of budget before it could rule out every smaller circuit, so 2 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.
← #10 The Alchemists Pressure Valve · #12 The Bakery Oven Alarm →