Skip to content

Solution to the problem of the wolf, the sheep and the cabbage (WSC) written in Prolog

License

Notifications You must be signed in to change notification settings

LuisChineaRangel/wsc-riddle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Wolf, Sheep and Cabbage Riddle

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. License
  3. Contact

About the Project

This project was created with the objective of develop of a system based on knowledge in Prolog to provide a solution to the problem of the wolf, the sheep and the cabbage (WSC):

Once upon a time a farmer went to a market and purchased a wolf, a goat, and a cabbage. On his way home, the farmer came to the bank of a river and rented a boat. But crossing the river by boat, the farmer could carry only himself and a single one of his purchases: the wolf, the goat, or the cabbage.

If left unattended together, the wolf would eat the goat, or the goat would eat the cabbage.

The farmer's challenge was to carry himself and his purchases to the far bank of the river, leaving each purchase intact. How did he do it?

Written In

Built With

License

This program is available as open source under the terms of the MIT License.

Contact

Luis Marcelo Chinea Rangel - luischinearangel@gmail.com

Project Link: https://github.com/iluzioDev/wsc-riddle

About

Solution to the problem of the wolf, the sheep and the cabbage (WSC) written in Prolog

Topics

Resources

License

Stars

Watchers

Forks

Languages