Timeburn Burn your time wisely.
Gatesmith daily puzzle #15 · 30 October 2026

The Castle Gate Keeper

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

To open the GATE, both the LEVER and the KEY must be active, but the GUARD must not be present. The BELL rings if the LEVER is pulled without the KEY.

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.

LEVERKEYGUARDGATEBELL
00000
00100
01000
01100
10001
10101
11010
11100

What the table tells you

The smallest known circuit: 5 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 = LEVER AND KEY
  2. g2 = NOT GUARD
  3. g3 = NOT KEY
  4. g4 = g1 AND g2
  5. g5 = LEVER AND g3
  6. GATE = g4
  7. BELL = g5

The search ran out of budget before it could rule out every smaller circuit, so 5 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.

← #14 The Baker's Scone Alert · #16 The Space Station Oxygen Scrubber →

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