From 138610b0709d6e251c16b391242023eec393d775 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 15 Feb 2016 20:17:49 +0100 Subject: Prolog: add a graph of family relations --- prolog/problems/family_relations/father_2/sl.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'prolog/problems/family_relations/father_2') diff --git a/prolog/problems/family_relations/father_2/sl.py b/prolog/problems/family_relations/father_2/sl.py index adb6fd9..4f7f3de 100644 --- a/prolog/problems/family_relations/father_2/sl.py +++ b/prolog/problems/family_relations/father_2/sl.py @@ -8,10 +8,14 @@ description = '''\
 ?- father(thomas, william).
   true.
-?- father(aleksander, X).
-  X = luana ;
-  X = daniela.
-
''' +?- father(aleksander, Y). + Y = luana ; + Y = daniela. + +

Družinska drevesa so +podana s predikati parent/2, male/1 in +female/1.

+''' plan = [ '''\ -- cgit v1.2.1