summaryrefslogtreecommitdiff
path: root/prolog/problems/family_relations/sister_2
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-15 20:17:49 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-15 20:17:49 +0100
commit138610b0709d6e251c16b391242023eec393d775 (patch)
treea3ad175f0b2530348cfb7162265b18534651a161 /prolog/problems/family_relations/sister_2
parent1e8acd4046a4315822bfd65718553733c17fbb3e (diff)
Prolog: add a graph of family relations
Diffstat (limited to 'prolog/problems/family_relations/sister_2')
-rw-r--r--prolog/problems/family_relations/sister_2/sl.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/prolog/problems/family_relations/sister_2/sl.py b/prolog/problems/family_relations/sister_2/sl.py
index 92ea45d..6c36bce 100644
--- a/prolog/problems/family_relations/sister_2/sl.py
+++ b/prolog/problems/family_relations/sister_2/sl.py
@@ -4,11 +4,15 @@ name = 'sister/2'
slug = 'X je sestra od Y'
description = '''\
-<p><code>sister(?X, ?Y)</code>: <code>X</code> je sestra od <code>Y</code>.</p>
+<p><code>sister(?X, ?Y)</code>: <code>X</code> je sestra od <code>Y</code>. Primer:</p>
<pre>
-?- sister(vanessa, X).
- X = patricia.
-</pre>'''
+?- sister(vanessa, Y).
+ Y = patricia.
+</pre>
+<p><a target="_blank" href="[%@resource famrel.svg%]">Družinska drevesa</a> so
+podana s predikati <code>parent/2</code>, <code>male/1</code> in
+<code>female/1</code>.</p>
+'''
plan = [
'''\