From 1b64321fda0bbf1f5a678671c1344eb2b87b5c74 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 10 Sep 2015 22:29:24 +0200 Subject: Use Hint classes for hints from the last commit Also move the language-specific hint method for Prolog to prolog.common. --- prolog/problems/family_relations/father_2/sl.py | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'prolog/problems/family_relations/father_2/sl.py') diff --git a/prolog/problems/family_relations/father_2/sl.py b/prolog/problems/family_relations/father_2/sl.py index c9c38b7..8fb66c5 100644 --- a/prolog/problems/family_relations/father_2/sl.py +++ b/prolog/problems/family_relations/father_2/sl.py @@ -1,11 +1,12 @@ # coding=utf-8 -id = 94 -name = 'mother/2' -slug = 'X je mama od Y' +id = 181 +name = 'father/2' +slug = 'X je oče od Y' +# TODO fix example description = '''\ -

mother(X, Y): X je mama od Y.

+

father(X, Y): X je oče od Y.

   ?- mother(tina, william).
     true.
@@ -15,19 +16,15 @@ description = '''\
 
''' hint = { - 'general_hint_1': '''\ + 'general_hint': ['''\

Loni naj zbriše imena relacij (parent, mother) s te slike!

-''', - - 'general_hint_2': '''\ +''', '''\

-''', - - 'general_hint_3': '''\ +''', '''\

Če je X ženska in je hkrati X starš od Y, potem je X mama od Y.

-''', +'''], 'or_instead_of_and': '''\

Si morda uporabil podpičje (ki pomeni ALI) namesto vejice (ki pomeni IN)?

-- cgit v1.2.1