Re: Newbie: Project: Missionary and Cannibal
17 Jan
2007
17 Jan
'07
1:24 a.m.
This is presumably your homework. See http://www.haskell.org/haskellwiki/Homework_help This kind of problem is often solved by using the List monad, so try looking at that first. Failing that, have a list of moves to make a sequence. Then make a list of all possible sequences. Then filter out the ones that break the rules. Whatever is left is the answer you want. Paul.
6935
Age (days ago)
6935
Last active (days ago)
0 comments
1 participants
participants (1)
-
Paul Johnson