Home > Riddles > The wolf, the goat and the cabbage

The wolf, the goat and the cabbage

Its strength lies in a minimum restriction: the boat can cross many times, but each shore must always be safe. Solving it is not about moving pieces, but about keeping an eye on which pairs are left alone.

A farmer must cross a river with a wolf, a goat and a cabbage. The boat can only carry the farmer and one of the other three.

If you leave the wolf alone with the goat, the wolf eats it. If you leave the goat alone with the cabbage, the goat will eat it.

How can everyone cross without either of those things happening?

Hints

Show hints
  1. The problem is not only what you carry, but what you leave behind on each shore.
  2. The goat is the critical element: it cannot be left alone with either the wolf or the cabbage.
  3. That's why the goat will have to cross more times than the other two.

Solution

Show full solution

Answer: a minimum valid sequence is: 1. The farmer takes the goat to the other side.

  1. The farmer returns alone.
  2. The farmer takes the wolf to the other side.
  3. The farmer returns with the goat.
  4. The farmer carries the cabbage to the other side.
  5. The farmer returns alone.
  6. The farmer takes the goat to the other side again. It also works by exchanging the order of the wolf and the cabbage: take the cabbage first, bring back the goat, then take the wolf and finish by carrying the goat. What doesn't change is the structure: the goat must cross first, come back once, and cross again at the end. This way they are never alone, wolf-goat or goat-cabbage. In the end, wolf, goat and cabbage are on the other side.

Related riddles

Keep practicing

If you enjoyed this one, try more pure-logic riddles, explore this theme, browse the full archive, or read the riddle-solving guide.

← Previous: The rope alrededor of the Tierra · Next: The tower of Hanoi →