8fb01d6607
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2017 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
15 lines
223 B
Plaintext
15 lines
223 B
Plaintext
/*
|
|
?- s([win(white)],P).
|
|
P = 0.5 ?
|
|
yes
|
|
?- s([win(black)],P).
|
|
P = 0.5 ?
|
|
yes
|
|
?- s([win(black),win(white)],P).
|
|
P = 0 ?
|
|
*/
|
|
|
|
win(white) :- \+ win(black).
|
|
win(black):- \+ win(white).
|
|
win(white) : 0.5 ; win(black) : 0.5.
|