Skip to content

My submission for the WWDC 2023 Swift Student Challenge (accepted)

Notifications You must be signed in to change notification settings

CodyQin/Ferryman-Puzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Ferryman-Puzzle

My submission for the WWDC 2023 Swift Student Challenge (accepted)

This is a small game about the wolf-goat-cabbage crossing problem. The story of the Wolf, Sheep and Cabbage Problem dates back to at least the 9th century and has become folklore in several cultures. In the story, a ferryman (farmer) buys wolves, sheep and cabbages from the market. To get home, he needs to row a wooden boat across the river, but the boat can only carry one of the wolf, the sheep, and the cabbage at a time, and the ferryman can't leave the wolf and the sheep, or the sheep and the cabbage, alone on the bank of the river while the boat is traveling back and forth, so how does the ferryman get all three goods to the other side of the river under those conditions? And Ferryman Puzzle aims to allow users can solve the wolf and sheep and cabbage across the river problem by hands-on practice. image

Opening the game, the user will first see an introduction about the game. Subsequently into the interface, the following four buttons are the wolf and sheep dishes as well as the boat movement buttons; the first button in the upper right corner is to open the game introduction window; the second button is the instruction button, when you click on it, the upper cloud will turn into a board showing the answer steps, the user can complete the game under the instructions of the answer; the third button is the reset button, which enables the user to return the game to the initial look to retry it again. When the user fails in the middle of the game, he or she can even see the sheep drooling or the wolf drooling and the sheep being scared image image image image

About

My submission for the WWDC 2023 Swift Student Challenge (accepted)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published