Timeburn Burn your time wisely.
Gatesmith daily puzzle #37 · 21 November 2026

The Castle Gate Defense

easy · 3 inputs, 1 output · allowed gates: NOT, AND, OR · best known: 3 gates (proved minimal)

When the MOAT is full and the RAIN falls, the GATE remains closed. The GATE opens only if the BRIDGE is down and either the MOAT is empty or it is not 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.

MOATRAINBRIDGEGATE
0000
0011
0100
0111
1000
1011
1100
1110

What the table tells you

The smallest known circuit: 3 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 line says which signal drives the output.

  1. g1 = MOAT AND RAIN
  2. g2 = NOT g1
  3. g3 = BRIDGE AND g2
  4. GATE = g3

The search checked every circuit with fewer gates and none matches the table, so 3 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.

← #36 The Dragon Guard Alert · #38 The Greenhouse Frost Alert →

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