Search found 1 match

by Klim0
1 May 2020 22:02
Forum: Visual Prolog
Topic: What does this code do?
Replies: 3
Views: 2892

What does this code do?

Hey guys,
Im looking for help here about this code:

circuit(b,a).
circuit(a,b).
circuit(c,b).
circuit(a,c).

path([]).
path([_]).
path[X,Y|Zs]):- circuit(X,Y), path([Y|Zs]).
path(X,Y).

What does this program do and how does it work? Please, help :/