Missionaries and savage game demo
2016-08-23
0 0 0
no vote
Other
Earn points
Missionaries and savage question game demo
Problem description: three missionaries (Missionaries) and 3 Savage (Cannibals) came to the river, going to take a boat to cross from the right bank to the left bank. The maximum load capacity of the ship two (k = 2). In any case: If the number exceeds the missionaries Savage number, then Savage would eat the missionaries. How can they use the boat safely across the river everyone go? (Hint: use state space to describe its comprehensive database: ternary array representation, m represents missionaries, c, said Savage, b represents the state of the ship)
Problem description: three missionaries (Missionaries) and 3 Savage (Cannibals) came to the river, going to take a boat to cross from the right bank to the left bank. The maximum load capacity of the ship two (k = 2). In any case: If the number exceeds the missionaries Savage number, then Savage would eat the missionaries. How can they use the boat safely across the river everyone go? (Hint: use state space to describe its comprehensive database: ternary array representation, m represents missionaries, c, said Savage, b represents the state of the ship)
scheme
demo
游戏
问题
野人
传教士
Related Source Codes
Python's demo
0
0
no vote
Stardust legend source code
0
0
no vote
Texas Poker Blackjack
0
0
no vote
RGP game character 45 degree map+A star routing al
0
0
no vote
Conway Life Game
0
0
no vote
No comment