diff options
Diffstat (limited to 'prolog/problems/family_relations/sister_2/en.py')
-rw-r--r-- | prolog/problems/family_relations/sister_2/en.py | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/prolog/problems/family_relations/sister_2/en.py b/prolog/problems/family_relations/sister_2/en.py index d8395c0..629123c 100644 --- a/prolog/problems/family_relations/sister_2/en.py +++ b/prolog/problems/family_relations/sister_2/en.py @@ -11,4 +11,25 @@ description = '''\ X = patricia. </pre>''' -hint = {} +hint = { + 'x_y_must_be_different': '''\ +<p>What if <code>X</code> and <code>Y</code> are the same person? Try the +following query:</p> +<pre> +?- sister(sally, Y). +</pre> +''', + + # TODO move to generic prolog/en.py + 'no_hint': '''\ +<p>No hint available, sorry! Try to use thinking instead.</p> +''', + + # TODO move to generic prolog/en.py + 'syntax_error': '''\ +<p>Your code contains syntactic mistakes. The Prolog compiler emitted the following messages:</p> +<pre> +[%=messages%] +</pre> +''', +} |