Page 1 of 1

PIE: How to ask Rules ?

Posted: 30 Dec 2019 15:13
by jeangil
Hello,

I'm looking how to ask 2 rules, I wrote in the PIE window (see below) :

Code: Select all

hypothese(A):-     etat(B),     etat(C).     hypothese(D):-     etat(E),     etat(F).
And I would like to write in Dialog Window, something to find "B" and "C", knowing "A" ?

I try this: "hypothese(A):- etat(Y), etat(Z)."
but it ask me for unknown clause.

May be it's not possible ? but I rather think something is wrong in my code..!

Could you help me ?

Thanks.
Jeangil

Re: PIE: How to ask Rules ?

Posted: 2 Jan 2020 7:54
by Thomas Linder Puls
The tutorials Fundamental Prolog Part 1 & Part 2 describes how to do "traditional" Prolog programming using PIE.