A farmer with a wolf, a goat, and a cabbage must cross a river. If left unattended…
- User
A farmer with a wolf, a goat, and a cabbage must cross a river. If left unattended together, the wolf would eat the goat, or the goat would eat the cabbage. There is a wide bridge across the river. How can they cross the river without anything being eaten?
Assistant
This is a classic river-crossing puzzle. The goal is to get the farmer, wolf, goat, and cabbage across the river without leaving the wolf alone with the goat, or the goat alone with the cabbage.
Here’s how the farmer can do it step by step:
Characters:
- Farmer (F)
- Wolf (W)
- Goat (G)
- Cabbage (C)
Only two can ride in the boat at once, and the farmer must always be in the boat since he's the one rowing.
Step-by-step solution:
-
Farmer takes the goat across the river.
- Left: Wolf, Cabbage
- Right: Farmer, Goat
-
Farmer returns alone.
- Left: Farmer, Wolf, Cabbage
- Right: Goat
-
Farmer takes the cabbage across the river.
- Left: Wolf
- Right: Farmer, Goat, Cabbage
-
Farmer brings the goat back.
- Left: Farmer, Goat, Wolf
- Right: Cabbage
-
Farmer takes the wolf across the river.
- Left: Goat
- Right: Farmer, Wolf, Cabbage
-
Farmer returns alone.
- Left: Farmer, Goat
- Right: Wolf, Cabbage
-
Farmer takes the goat across the river.
- Left: (empty)
- Right: Farmer, Wolf, Goat, Cabbage
✅ All four have crossed safely, and nothing was eaten!
Let me know if you'd like a visual representation or diagram of the steps!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
mistral-medium-2505Compare side by side →
claude-sonnet-4-20250514Compare side by side →
gemini-2.5-flash-lite-preview-06-17-thinkingCompare side by side →
claude-3-7-sonnet-20250219Compare side by side →
amazon-nova-experimental-chat-05-14Compare side by side →
- o4-mini-2025-04-16Compare side by side →
- chatgpt-4o-latest-20250326Compare side by side →
claude-sonnet-4-20250514-thinking-32kCompare side by side →
gemini-2.5-flash-lite-preview-06-17-thinkingCompare side by side →
- chatgpt-4o-latest-20250326Compare side by side →
claude-sonnet-4-20250514-thinking-32kCompare side by side →
claude-opus-4-20250514-thinking-16kCompare side by side →