Gatesmith daily puzzle #6 · 21 October 2026

The Tram Line Switch

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

Adjust the SWITCH and TRACK to control the SIGNAL. The SIGNAL must activate only if either the SWITCH is on while the TRACK is off, or both are on and a third sensor is off.

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.

SWITCHTRACKSENSORSIGNAL
0000
0010
0100
0110
1001
1011
1101
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 = TRACK NAND SENSOR
  2. g2 = SWITCH NAND g1
  3. g3 = g2 NAND g2
  4. SIGNAL = 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.

← #5 The Radio Signal Filter · #7 The Workshop Alarm →

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