summaryrefslogtreecommitdiff
path: root/sister.py
diff options
context:
space:
mode:
Diffstat (limited to 'sister.py')
-rw-r--r--sister.py21
1 files changed, 18 insertions, 3 deletions
diff --git a/sister.py b/sister.py
index 638a0d8..c4b551c 100644
--- a/sister.py
+++ b/sister.py
@@ -1,12 +1,11 @@
# najprej opis
-description = """
+description = """\
<p>Predikat <code>sister(X, Y)</code> velja natanko takrat, kadar je <code>X</code> sestra od <code>Y</code>.
Primer klica:</p>
<p><code>
?- sister(X, patricia).<br>
&nbsp;&nbsp;X = vanessa.
-</code></p>
-"""
+</code></p>"""
# in zdaj hinti
hint = {} # to je komentar
@@ -19,3 +18,19 @@ hint['must_have_common_parent'] = """
hint['x_must_be_female'] = "<code>X</code> mora biti ženskega spola."
hint['x_cant_be_own_sister'] = "<code>X</code> ne more biti sestra sama sebi."
hint['y_not_necessarily_woman'] = "<code>Y</code> ni nujno ženskega spola / relacija ni simetrična."
+
+# a drop-down hint must supply the arguments: start (int), end (int), choices (array of string)
+hint['drop_down'] = {
+ 'type': 'dropdown'
+}
+# a pop-up hint must supply the arguments: start (int), end (int), args (object of key-value args for the template, optional)
+hint['popup_unknown'] = {
+ 'type': 'popup',
+ 'message': 'nekaj si zabluzil v vrstici [%=row%]'
+}
+# a static hint can supply an optional argument: args (object of key-value args for the template)
+# a static hint can also be defined as a string instead of an object
+hint['sample_static'] = {
+ 'type': 'static',
+ 'message': 'A sample static hint'
+}