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/brother_2/sl.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'prolog/problems/family_relations/brother_2') diff --git a/prolog/problems/family_relations/brother_2/sl.py b/prolog/problems/family_relations/brother_2/sl.py index 6d45111..2d170aa 100644 --- a/prolog/problems/family_relations/brother_2/sl.py +++ b/prolog/problems/family_relations/brother_2/sl.py @@ -7,9 +7,13 @@ description = '''\

brother(?X, ?Y): X je brat od Y.

 ?- brother(jeffrey, X).
-  X = william ;
-  X = sally.
-
''' + Y = william ; + Y = sally. + +

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

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