blob: 629123cf5f8ed56329146dc28a9f982b5551830b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# coding=utf-8
id = 96
name = 'sister/2'
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.
</pre>'''
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>
''',
}
|