diff options
Diffstat (limited to 'prolog/problems/family_relations')
19 files changed, 72 insertions, 72 deletions
diff --git a/prolog/problems/family_relations/ancestor_2/en.py b/prolog/problems/family_relations/ancestor_2/en.py index 29fb253..588de83 100644 --- a/prolog/problems/family_relations/ancestor_2/en.py +++ b/prolog/problems/family_relations/ancestor_2/en.py @@ -6,10 +6,10 @@ slug = 'the ancestor relation' description = '''\ <p><code>ancestor(X, Y)</code>: <code>X</code> is an ancestor (parent, grandparent,...) of <code>Y</code>.</p> <pre> - ?- ancestor(patricia, X). - X = john ; - X = michael ; - X = michelle. +?- ancestor(patricia, X). + X = john ; + X = michael ; + X = michelle. </pre>''' hint = {} diff --git a/prolog/problems/family_relations/ancestor_2/sl.py b/prolog/problems/family_relations/ancestor_2/sl.py index b0fae7c..9e5c9bf 100644 --- a/prolog/problems/family_relations/ancestor_2/sl.py +++ b/prolog/problems/family_relations/ancestor_2/sl.py @@ -6,10 +6,10 @@ slug = 'X je prednik od Y' description = '''\ <p><code>ancestor(X, Y)</code>: <code>X</code> je prednik (oče, mama, dedek, ...) od <code>Y</code>.</p> <pre> - ?- ancestor(patricia, X). - X = john ; - X = michael ; - X = michelle. +?- ancestor(patricia, X). + X = john ; + X = michael ; + X = michelle. </pre>''' plan = ['''\ diff --git a/prolog/problems/family_relations/aunt_2/en.py b/prolog/problems/family_relations/aunt_2/en.py index 25cac41..7e508bc 100644 --- a/prolog/problems/family_relations/aunt_2/en.py +++ b/prolog/problems/family_relations/aunt_2/en.py @@ -6,9 +6,9 @@ slug = 'the aunt relation' description = '''\ <p><code>aunt(X, Y)</code>: <code>X</code> is an aunt of <code>Y</code>.</p> <pre> - ?- aunt(sally, X). - X = vanessa ; - X = patricia. +?- aunt(sally, X). + X = vanessa ; + X = patricia. </pre>''' hint = {} diff --git a/prolog/problems/family_relations/aunt_2/sl.py b/prolog/problems/family_relations/aunt_2/sl.py index e5c3bb9..eb1b673 100644 --- a/prolog/problems/family_relations/aunt_2/sl.py +++ b/prolog/problems/family_relations/aunt_2/sl.py @@ -6,9 +6,9 @@ slug = 'X je teta od Y' description = '''\ <p><code>aunt(X, Y)</code>: <code>X</code> je teta od <code>Y</code>.</p> <pre> - ?- aunt(sally, X). - X = vanessa ; - X = patricia. +?- aunt(sally, X). + X = vanessa ; + X = patricia. </pre>''' plan = ['''\ diff --git a/prolog/problems/family_relations/brother_2/en.py b/prolog/problems/family_relations/brother_2/en.py index 2daf78f..a461ba8 100644 --- a/prolog/problems/family_relations/brother_2/en.py +++ b/prolog/problems/family_relations/brother_2/en.py @@ -6,9 +6,9 @@ slug = 'the brother relation' description = '''\ <p><code>brother(X, Y)</code>: <code>X</code> is a brother of <code>Y</code>.</p> <pre> - ?- brother(jeffrey, X). - X = william ; - X = sally. +?- brother(jeffrey, X). + X = william ; + X = sally. </pre>''' hint = {} diff --git a/prolog/problems/family_relations/brother_2/sl.py b/prolog/problems/family_relations/brother_2/sl.py index 29703a1..29ec289 100644 --- a/prolog/problems/family_relations/brother_2/sl.py +++ b/prolog/problems/family_relations/brother_2/sl.py @@ -6,9 +6,9 @@ slug = 'X je brat od Y' description = '''\ <p><code>brother(X, Y)</code>: <code>X</code> je brat od <code>Y</code>.</p> <pre> - ?- brother(jeffrey, X). - X = william ; - X = sally. +?- brother(jeffrey, X). + X = william ; + X = sally. </pre>''' plan = [ diff --git a/prolog/problems/family_relations/connected_3/en.py b/prolog/problems/family_relations/connected_3/en.py index f50d60e..932d4cf 100644 --- a/prolog/problems/family_relations/connected_3/en.py +++ b/prolog/problems/family_relations/connected_3/en.py @@ -6,10 +6,10 @@ slug = 'check if two people are connected in the family tree' description = '''\ <p><code>connected(X, Y, N)</code>: <code>X</code> and <code>Y</code> are connected with a series of (no more than <code>N</code>) parent/child relations.</p> <pre> - ?- connected(ana, morty, 10). - false. - ?- connected(ana, margaret, 10). - true. +?- connected(ana, morty, 10). + false. +?- connected(ana, margaret, 10). + true. </pre>''' hint = {} diff --git a/prolog/problems/family_relations/cousin_2/en.py b/prolog/problems/family_relations/cousin_2/en.py index cf628db..93e3aee 100644 --- a/prolog/problems/family_relations/cousin_2/en.py +++ b/prolog/problems/family_relations/cousin_2/en.py @@ -6,9 +6,9 @@ slug = 'the cousin relation' description = '''\ <p><code>cousin(X, Y)</code>: <code>X</code> is a cousin (male or female) of <code>Y</code>.</p> <pre> - ?- cousin(andrew, X). - X = vanessa ; - X = patricia. +?- cousin(andrew, X). + X = vanessa ; + X = patricia. </pre>''' hint = {} diff --git a/prolog/problems/family_relations/cousin_2/sl.py b/prolog/problems/family_relations/cousin_2/sl.py index 7bd819a..5e18f4a 100644 --- a/prolog/problems/family_relations/cousin_2/sl.py +++ b/prolog/problems/family_relations/cousin_2/sl.py @@ -6,9 +6,9 @@ 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> <pre> - ?- cousin(andrew, X). - X = vanessa ; - X = patricia. +?- cousin(andrew, X). + X = vanessa ; + X = patricia. </pre>''' plan = ['''\ diff --git a/prolog/problems/family_relations/descendant_2/en.py b/prolog/problems/family_relations/descendant_2/en.py index 74360f3..2bd30af 100644 --- a/prolog/problems/family_relations/descendant_2/en.py +++ b/prolog/problems/family_relations/descendant_2/en.py @@ -6,10 +6,10 @@ slug = 'the descendant relation' description = '''\ <p><code>descendant(X, Y)</code>: <code>X</code> is a descendant (child, grandchild,...) of <code>Y</code>.</p> <pre> - ?- descendant(patricia, X). - X = william ; - X = tina ; - X = thomas. +?- descendant(patricia, X). + X = william ; + X = tina ; + X = thomas. </pre>''' hint = {} diff --git a/prolog/problems/family_relations/descendant_2/sl.py b/prolog/problems/family_relations/descendant_2/sl.py index 5f4a3ca..993b4bb 100644 --- a/prolog/problems/family_relations/descendant_2/sl.py +++ b/prolog/problems/family_relations/descendant_2/sl.py @@ -6,10 +6,10 @@ slug = 'the descendant relation' description = '''\ <p><code>descendant(X, Y)</code>: <code>X</code> is a descendant (child, grandchild,...) of <code>Y</code>.</p> <pre> - ?- descendant(patricia, X). - X = william ; - X = tina ; - X = thomas. +?- descendant(patricia, X). + X = william ; + X = tina ; + X = thomas. </pre>''' plan = ['''\ diff --git a/prolog/problems/family_relations/father_2/en.py b/prolog/problems/family_relations/father_2/en.py index bde9a2d..31517c9 100644 --- a/prolog/problems/family_relations/father_2/en.py +++ b/prolog/problems/family_relations/father_2/en.py @@ -6,11 +6,11 @@ slug = 'the father-child relation' description = '''\ <p><code>father(X, Y)</code>: <code>X</code> is the father of <code>Y</code>.</p> <pre> - ?- father(thomas, william). - true. - ?- father(aleksander, X). - X = luana ; - X = daniela. +?- father(thomas, william). + true. +?- father(aleksander, X). + X = luana ; + X = daniela. </pre>''' hint = {} diff --git a/prolog/problems/family_relations/father_2/sl.py b/prolog/problems/family_relations/father_2/sl.py index 7b37aba..fed61c7 100644 --- a/prolog/problems/family_relations/father_2/sl.py +++ b/prolog/problems/family_relations/father_2/sl.py @@ -6,11 +6,11 @@ slug = 'X je oče od Y' description = '''\ <p><code>father(X, Y)</code>: <code>X</code> je oče od <code>Y</code>.</p> <pre> - ?- father(thomas, william). - true. - ?- father(aleksander, X). - X = luana ; - X = daniela. +?- father(thomas, william). + true. +?- father(aleksander, X). + X = luana ; + X = daniela. </pre>''' plan = [ diff --git a/prolog/problems/family_relations/grandparent_2/en.py b/prolog/problems/family_relations/grandparent_2/en.py index c181ab5..11918a9 100644 --- a/prolog/problems/family_relations/grandparent_2/en.py +++ b/prolog/problems/family_relations/grandparent_2/en.py @@ -6,11 +6,11 @@ slug = 'the grandparent relation' description = '''\ <p><code>grandparent(P, C)</code>: <code>P</code> is a grandparent of <code>C</code>.</p> <pre> - ?- grandparent(tina, X). - X = vanessa ; - X = patricia. - ?- grandparent(tina, vanessa). - true. +?- grandparent(tina, X). + X = vanessa ; + X = patricia. +?- grandparent(tina, vanessa). + true. </pre>''' hint = {} diff --git a/prolog/problems/family_relations/grandparent_2/sl.py b/prolog/problems/family_relations/grandparent_2/sl.py index 2246ae6..d74f4f4 100644 --- a/prolog/problems/family_relations/grandparent_2/sl.py +++ b/prolog/problems/family_relations/grandparent_2/sl.py @@ -6,11 +6,11 @@ slug = 'X je dedek ali babica od Y' description = '''\ <p><code>grandparent(X, Y)</code>: <code>X</code> je dedek ali babica od <code>Y</code>.</p> <pre> - ?- grandparent(tina, X). - X = vanessa ; - X = patricia. - ?- grandparent(tina, vanessa). - true. +?- grandparent(tina, X). + X = vanessa ; + X = patricia. +?- grandparent(tina, vanessa). + true. </pre>''' plan = ['''\ diff --git a/prolog/problems/family_relations/mother_2/en.py b/prolog/problems/family_relations/mother_2/en.py index 722c016..531c3d7 100644 --- a/prolog/problems/family_relations/mother_2/en.py +++ b/prolog/problems/family_relations/mother_2/en.py @@ -6,11 +6,11 @@ slug = 'the mother-child relation' description = '''\ <p><code>mother(M, C)</code>: <code>M</code> is the mother of <code>C</code>.</p> <pre> - ?- mother(tina, william). - true. - ?- mother(nevia, X). - X = luana ; - X = daniela. +?- mother(tina, william). + true. +?- mother(nevia, X). + X = luana ; + X = daniela. </pre>''' hint = {} diff --git a/prolog/problems/family_relations/mother_2/sl.py b/prolog/problems/family_relations/mother_2/sl.py index b37c20c..5869033 100644 --- a/prolog/problems/family_relations/mother_2/sl.py +++ b/prolog/problems/family_relations/mother_2/sl.py @@ -6,11 +6,11 @@ slug = 'X je mama od Y' description = '''\ <p><code>mother(X, Y)</code>: <code>X</code> je mama od <code>Y</code>.</p> <pre> - ?- mother(tina, william). - true. - ?- mother(nevia, X). - X = luana ; - X = daniela. +?- mother(tina, william). + true. +?- mother(nevia, X). + X = luana ; + X = daniela. </pre>''' plan = [ diff --git a/prolog/problems/family_relations/sister_2/en.py b/prolog/problems/family_relations/sister_2/en.py index 32bb9d9..a7e2035 100644 --- a/prolog/problems/family_relations/sister_2/en.py +++ b/prolog/problems/family_relations/sister_2/en.py @@ -6,8 +6,8 @@ slug = 'the sister relation' description = '''\ <p><code>sister(X, Y)</code>: <code>X</code> is a sister of <code>Y</code>.</p> <pre> - ?- sister(vanessa, X). - X = patricia. +?- sister(vanessa, X). + X = patricia. </pre>''' hint = { diff --git a/prolog/problems/family_relations/sister_2/sl.py b/prolog/problems/family_relations/sister_2/sl.py index cb51592..5ca9928 100644 --- a/prolog/problems/family_relations/sister_2/sl.py +++ b/prolog/problems/family_relations/sister_2/sl.py @@ -6,8 +6,8 @@ slug = 'X je sestra od Y' description = '''\ <p><code>sister(X, Y)</code>: <code>X</code> je sestra od <code>Y</code>.</p> <pre> - ?- sister(vanessa, X). - X = patricia. +?- sister(vanessa, X). + X = patricia. </pre>''' plan = [ |