chrisricard.com
Archive aisle lined with shelves of case boxes and card-catalog drawers

Solution to the Liar and the Truth Teller

July 27, 2026 · 328 KB

A one-page solution by Philip S. Thomas to the classic puzzle of two guards, one who always lies and one who always tells the truth, guarding doors to freedom and death.

Overview

Philip S. Thomas gives the answer to the familiar logic puzzle in which two guards stand before two doors, one leading to freedom and one to death, and one guard always lies while the other always tells the truth. Written in January 2011 and updated in 2014 and 2017, the page explains that you should ask either guard, "If I were to ask the other guard which door leads to freedom, what would they say?" Both guards will point to the door to death, so you take the other one. Thomas shows how to turn this into a yes-or-no question. He also solves the version with only one guard: ask what that guard would say if asked which door leads to freedom. The liar's double lie cancels out, so both kinds of guard point to the right door. This approach also works when you don't know how many of two guards lie. The page clearly explains the logic behind a classic puzzle.

Page 1 of Solution to the Liar and the Truth Teller
Page 1 · click to open the full PDF
Open full PDF (328 KB) ↗

More from Physical Sciences, Math & Engineering

See all 164 in Physical Sciences, Math & Engineering →