Who’s exploring?

PLAY · ARTICLE

The Wolf, the Goat and the Cabbage: A 1,200-Year-Old Puzzle

A farmer, a boat that holds one item, and two hungry problems - this classic river puzzle is still the perfect first logic challenge.

Colourful wooden abacus beads

The setup

A farmer must ferry a wolf, a goat and a cabbage across a river. The boat holds the farmer and just one item at a time. Leave the wolf alone with the goat and the goat is eaten; leave the goat alone with the cabbage and the cabbage is eaten. Everything else is safe. This puzzle appears in a collection from the court of Charlemagne, around the year 800, and it has been trapping beginners ever since.

The first move is forced. Take the wolf first and the goat eats the cabbage while you row. Take the cabbage first and the wolf eats the goat. Only the goat can cross first, because the goat is the troublemaker in both dangerous pairs.

The backward step

Here is the full crossing. Take the goat over. Row back alone. Take the wolf over - and here comes the move beginners resist: bring the goat back. Now take the cabbage over, leaving the goat safely behind you. Row back alone, fetch the goat, and you are done in seven crossings, with everyone uneaten.

The goat's return trip feels like failure, and that feeling is the puzzle's real lesson. Some problems cannot be solved by moves that all look like progress; sometimes you must temporarily undo a good position to unlock the next one. Chess players, programmers and anyone who has ever reorganised a cupboard will recognise the shape of that idea.

Try it yourself

Act it out with toys or labelled cups on a table edge 'river' - physically moving the pieces makes the backward step much easier to discover, and much harder to forget. Then try the harder classic variant: two couples crossing where nobody may be left with a stranger... or invent your own trio with new dangers.

Inventing your own version is the deeper game: choose three items and two forbidden pairs that share a middle item, and your puzzle will have the same skeleton as the original - forced first move, backward step and all.

Keep reading? Spark picked your next article.

Tic-Tac-Toe: The Game You Can SolveMore about Logic puzzles

More in Logic puzzles

— forget which articles you’ve read on this device.

Sources, credits & transparency

Development reference photograph · Unsplash. Reference use; provenance and final image approval pending; see public/images/manifest.json.

Created with AI assistance as part of a bulk seed pack approved by the SparkKindly site owner on 15 November 2026. No independent specialist review is claimed.

Report a mistake on this page