On Thu, 9 Aug 2007 20:07:02 +0200, you wrote: >("John is a knight","Bill is a knight","Yes","No ") >("John is a knight","Bill is a knave ","No ","No ") >("John is a knave ","Bill is a knight","Yes","Yes") >("John is a knave ","Bill is a knave ","Yes","No ") > >Anyone has an idea what I missed here?
You're missing a key element of the problem: After John answers the first question, the Logician doesn't have enough information to solve the problem. Think about that for a second, and you will see the light. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe