THE MISSIONARIES AND CANNIBALS Rules of game Please
THE MISSIONARIES AND CANNIBALS
Rules of game : Please help the 3 cannibals and the 3 missionaries to move to the other side of the lake. Notice that : When there is on one side more cannibals than missionaries , they eat them.
Member : 1. Khame Muangkroot No. 3 Do : Pseudo code 2. Supawit Tabtim No. 8 Do : Make present 3. Torsakul Maneeeratana No. 13 Do : Member name + power point 4. Thiti. Pat Nakornsri No. 18 Do : Video + Flowchart 5. Supanat Bunyadirake No. 23 Do : Conclusion + flowchart
Pseudo code : Step 1 : Start - 3 missionaries and 3 cannibals Step 2 : Which pair choose move first ? - 2 cannibals (T) - 1 missionary (F) Step 3 : Which one choose move back ? - 1 cannibal (T) - 1 missionary (F) Step 4: Which pair choose move second ? - 2 cannibals (T) - 1 missionary (F) Step 5 : Which one choose move back ? - 1 cannibal (T) - 1 missionary (F)
Step 6 : Which pair choose move third ? - 2 missionaries (T) - 2 cannibals (F) Step 7 : Which one choose move back ? - 1 missionary and 1 cannibal (T) - 1 cannibal (F) Step 8 : Which pair choose move forth ? - 2 missionary (T) - 1 missionary and 1 cannibal (F) Step 9 : Which one choose move back ? - 1 cannibal (T) - 1 missionary (F) Step 10 : Which pair choose move fifth ? - 2 cannibals (T) - 1 missionary (F)
Step 11 : Which one choose move back ? - 1 cannibal (T) - 1 missionary (F) Step 12 : Which pair choose move sixth ? - 2 cannibals (T) - 1 missionary (F) Step 13 : 3 Missionaries and 3 cannibals in other side Step 14 : Finish
Flowchart : Start 3 missionaries and 3 cannibals Which pair choose move first ? Yes 2 cannibals Which one choose move back ? Yes No 1 missionary
1 cannibal Which pair choose move second ? No 1 missionary Yes 2 cannibals Which one choose move back ? No 1 missionary Yes 1 cannibal No Which pair choose move third ? Yes 2 cannibals
2 missionaries Which one choose move back ? No 1 cannibal Yes 1 missionary and 1 cannibal Which pair choose move forth? Yes 2 missionaries Which one choose move back ? Yes No 1 missionary and 1 cannibal No 1 missionnary
1 cannibal Which pair choose move fifth ? Yes 2 cannibals Which one choose move back ? No 1 missionary Yes 1 cannibal No Which pair choose move sixth ? Yes 1 missionary
1 cannibal 3 missionaries and 3 cannibals are in other side Finish
Conclusion : IT HELP US TO LEARN MORE ABOUT PSEUDO CODE AND FLOWCHART. IT ALSO HELP US TO USE POWERPOINT BETTER. SO, IT HELP US WORK AS A TEAM WITH GOOD RELATIONSHIP
- Slides: 12