The Prisoner and the Two Black Pebbles
The puzzle
A prisoner is given one chance. Two pebbles go into a bag - one white for freedom, one black for the gallows - and he must draw one in front of the court. But he watches the gaoler, who wants him hanged, put in two black pebbles. Accusing him is useless: the court will take the gaoler's word over a condemned man's, and the gaoler will simply empty the bag and start again.
The bag is held out to him. What does he do to walk out free?
Stuck?
One at a time, smallest first. Open only as many as you need — the whole point of the puzzle is the part you work out yourself.
Hint 1
There is nothing he can do about the pebble he draws. Think about the other one.
Hint 2
If the pebble he drew is never seen by anybody, the court has to work out its colour from what is left in the bag.
Show the answer Hide the answer
He draws a pebble and, in the same movement, lets it go where it cannot be recovered - into the long grass, the dust, the river. He apologises for his clumsiness and suggests the obvious remedy: look at the pebble still in the bag. It is black, so the court concludes that his was the white one.
How to get there
Start with the honest version to see what has been taken from him. One white pebble and one black, a blind draw, and his chance of freedom is 1 / 2 = 0.5. With two black pebbles that becomes zero, and no amount of skill in drawing changes it. So the pebble in his hand is worthless to him, and any plan that depends on showing it has already lost.
But the rigging has handed him something the honest bag never would: certainty about the pebble left behind. In a fair bag the remaining pebble could be either colour; in this one it is black, and he knows it before he reaches in. Destroying the evidence of his own draw converts that certainty into a verdict, because the court will reason exactly as the rules tell it to: one white, one black, the remaining one is black, therefore the drawn one was white.
The gaoler cannot object. To say "the lost pebble was black as well" is to confess in open court that he loaded the bag, which is the one thing he must never say. His own cheating has silenced him, and the prisoner never has to make an accusation that would not be believed.
The technique worth keeping
When a situation is rigged, stop trying to win the game as described and ask what the rigging tells you for certain. Knowledge that only a cheat could have is still knowledge, and a cheat cannot contradict it without admitting what he did.