ba6tati / wolfsheepcabbagesolver Goto Github PK
View Code? Open in Web Editor NEWWolfSheepCabbageSolver is a Java application that solves the classic river-crossing puzzle where a farmer must transport a wolf, a sheep, and a cabbage across a river without leaving the wolf alone with the sheep or the sheep alone with the cabbage. The boat can only carry the farmer and one item at a time.