Gatesmith daily puzzle #1 · 16 October 2026

The Greenhouse Sprinkler

medium · 3 inputs, 2 outputs · allowed gates: NOT, AND, OR, XOR · best known: 4 gates (proved minimal)

A sensor system manages the water flow. The SPRK output activates only when it is thirsty and not too sunny.

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.

DRYSUNRAINSPRKALRT
00001
00100
01000
01101
10011
10110
11000
11111

What the table tells you

The smallest known circuit: 4 gates

As a formula, one line per output:

As a netlist, in the order you would wire it. Each g is one gate; the last lines say which signal drives each output.

  1. g1 = NOT SUN
  2. g2 = RAIN OR g1
  3. g3 = RAIN XOR g1
  4. g4 = DRY AND g2
  5. SPRK = g4
  6. ALRT = g3

The search checked every circuit with fewer gates and none matches the table, so 4 is the true minimum for the allowed gate set. 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.

#2 The Lighthouse Beacon →

How Gatesmith works · Learn logic gates · Today's puzzle