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/aunt_2/sl.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'prolog/problems/family_relations/aunt_2') diff --git a/prolog/problems/family_relations/aunt_2/sl.py b/prolog/problems/family_relations/aunt_2/sl.py index 71f774f..81014f4 100644 --- a/prolog/problems/family_relations/aunt_2/sl.py +++ b/prolog/problems/family_relations/aunt_2/sl.py @@ -6,10 +6,14 @@ slug = 'X je teta od Y' description = '''\

aunt(?X, ?Y): X je teta od Y.

-?- aunt(sally, X).
-  X = vanessa ;
-  X = patricia.
-
''' +?- aunt(sally, Y). + Y = vanessa ; + Y = patricia. + +

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

+''' plan = ['''\

Morda lahko uporabiš rešitev kakšne prejšnje naloge?

-- cgit v1.2.1