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/mother_2/sl.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'prolog/problems/family_relations/mother_2') diff --git a/prolog/problems/family_relations/mother_2/sl.py b/prolog/problems/family_relations/mother_2/sl.py index 32103a8..e3cbd1e 100644 --- a/prolog/problems/family_relations/mother_2/sl.py +++ b/prolog/problems/family_relations/mother_2/sl.py @@ -8,10 +8,14 @@ description = '''\
 ?- mother(tina, william).
   true.
-?- mother(nevia, X).
-  X = luana ;
-  X = daniela.
-
''' +?- mother(nevia, Y). + Y = luana ; + Y = daniela. + +

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

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