%%%%%%%%%%%%%%%%%%%%%%%% % Eleusis parlour game. This is a guessing game involving cards and dice. % One player (the rule-maker) makes up game rules and presents the other % player (the guesser) with a pair of cards and a pair of dice. % The guesser is then told whether the game rules are true or not of the % cards and dice. eg. positive examples might look as follows % % ___ ___ % |7 | |A | _ _ % | C | | H | |1| |1| % | 7| | A| ~ ~ % ~~~ ~~~ % ___ ___ % |2 | |K | _ _ % | C | | S | |1| |4| % | 2| | K| ~ ~ % ~~~ ~~~ % and the rule might be that either the second dice is odd or the % suits must have the same colour. % % The 3 different eleusis (eleusis1,eleusis2,eleusis3) games were % obtained from J.R. Quinlan (University of Sydney). This file contains % common background knowledge for all three games. :- modeh(1,can_follow(+card,+suit,+card,+suit,+die,+die))? :- modeb(1,nextsuit(+suit,+suit))? :- modeb(1,nextcard(+card,+card))? :- modeb(1,face(+card))? :- modeb(1,odd(+card))? :- modeb(1,odd(+die))? :- modeb(1,samecolour(+suit,+suit))? :- modeb(1,lower(+card,+card))? :- set(c,2), set(i,2)? % Types card(N) :- nat(N), 2=