Skip to content

In this game, three missionaries and three cannibals need to be crossed a river using a boat which can carry at most two people, under the constraint that, for both banks, if there are missionaries present on the bank, they cannot be outnumbered by cannibals.

License

Notifications You must be signed in to change notification settings

amankumar6/missionaries-and-cannibals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

𝕄𝕚𝕤𝕤𝕚𝕠𝕟𝕒𝕣𝕚𝕖𝕤 𝕒𝕟𝕕 ℂ𝕒𝕟𝕟𝕚𝕓𝕒𝕝𝕤

missionaries-and-cannibals

It is a simple game made with javascript. In this game three missionaries and three cannibals need to be crossed a river using a boat which can carry at most two people, under the constraint that, for both banks, if there are missionaries present on the bank, they cannot be outnumbered by cannibals (if they were, the cannibals would eat the missionaries). The boat cannot cross the river by itself with no people on board.

Checkout my other repository

About

In this game, three missionaries and three cannibals need to be crossed a river using a boat which can carry at most two people, under the constraint that, for both banks, if there are missionaries present on the bank, they cannot be outnumbered by cannibals.

Topics

Resources

License

Stars

Watchers

Forks