PIE: How to ask Rules ?

Discussions related to Visual Prolog
jeangil
Posts: 12
Joined: 8 Sep 2019 15:59

PIE: How to ask Rules ?

Unread post by jeangil » 30 Dec 2019 15:13

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

User avatar
Thomas Linder Puls
VIP Member
Posts: 1632
Joined: 28 Feb 2000 0:01

Re: PIE: How to ask Rules ?

Unread post by Thomas Linder Puls » 2 Jan 2020 7:54

The tutorials Fundamental Prolog Part 1 & Part 2 describes how to do "traditional" Prolog programming using PIE.
Regards Thomas Linder Puls
PDC

Post Reply