Skip to content

A Java project for the search problem Missionaries and Cannibals. The project relies on BFSearch algorithm to expand and find the solution among the rest of the possible game outcomes.

Notifications You must be signed in to change notification settings

Ahmed-Elghareb/Missionaries-Cannibals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Missionaries-Cannibals

A Java project for the search problem Missionaries and Cannibals. The project relies on BFSearch algorithm to expand and find the solution among the rest of the possible game outcomes. The results of the BFSearch is stored in the txt file "output.txt", as it stored the result of all nodes expansion and the solution at the end.
An example of the output is like that:


   _____πŸ›Ά_ OOOXXX  πŸͺ΅


      πŸ’€         
XX _πŸ›Ά_____ OOOX  


      πŸ’‚         
 X _____πŸ›Ά_ OOOXX 


      πŸ’€         

XXX πŸ›Ά____ OOO


      πŸ’‚         
XX _____πŸ›Ά_ OOOX  


      πŸ’€         

XXOO πŸ›Ά____ OX


      πŸ’‚         
XO _____πŸ›Ά_ OOXX  


      πŸ’€         

XOOO πŸ›Ά____ XX


      πŸ’‚         

OOO ____πŸ›Ά XXX


      πŸ’€         

XXOOO πŸ›Ά____ X


      πŸ’‚         

XOOO ____πŸ›Ά XX


      πŸ’€         

XXXOOO πŸ›Ά____ βœ…

About

A Java project for the search problem Missionaries and Cannibals. The project relies on BFSearch algorithm to expand and find the solution among the rest of the possible game outcomes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages