diff options
Diffstat (limited to 'prolog/problems/family_relations/cousin_2')
-rw-r--r-- | prolog/problems/family_relations/cousin_2/sl.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/prolog/problems/family_relations/cousin_2/sl.py b/prolog/problems/family_relations/cousin_2/sl.py index a5f2b92..5b82305 100644 --- a/prolog/problems/family_relations/cousin_2/sl.py +++ b/prolog/problems/family_relations/cousin_2/sl.py @@ -4,12 +4,17 @@ name = 'cousin/2' slug = 'X je bratranec ali sestrična od Y' description = '''\ -<p><code>cousin(?X, ?Y)</code>: <code>X</code> je bratranec ali sestrična od <code>Y</code>.</p> +<p><code>cousin(?X, ?Y)</code>: <code>X</code> je bratranec ali sestrična od +<code>Y</code>.</p> <pre> -?- cousin(andrew, X). - X = vanessa ; - X = patricia. -</pre>''' +?- cousin(andrew, Y). + Y = vanessa ; + 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 = ['''\ <p>Verjetno bi se sedaj splačalo uporabiti rešitev kakšne prejšnje naloge?</p> |