by Tepix · 1y ago · 0 comments
"so you're on one side of the river with 2 wolves and 4 sheep and a boat that can carry 2 entities. The wolves eat the sheep when they are left alone with the sheep. How do you get them all across the river?"
ChatGPT (free+reasoning) came up with a solution with 11 moves, it didn't think about going back empty.
Qwen3 figured out the optimal solution with 7 moves and summarized it nicely:
First, move the wolves to the right to free the left shore of predators.
Then shuttle the sheep in pairs, returning with wolves when necessary to keep both sides safe.
Finally, return the wolves to the right when all sheep are across.Claude's 7 step for the original turns to 11 steps for this variant.