summaryrefslogtreecommitdiff
path: root/robot
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-10-01 21:15:05 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-10-01 21:15:05 +0200
commit047792d552872869099cf9bb8c58c576faf933f4 (patch)
treeacbf90e65d2158d31e7edb7f046bd9fcabb4a1f7 /robot
parent2fefd55550808f630190c89c6d9b3f6bfed3f164 (diff)
Add basic language hint files for robot
Diffstat (limited to 'robot')
-rw-r--r--robot/common.py5
-rw-r--r--robot/sl.py11
2 files changed, 15 insertions, 1 deletions
diff --git a/robot/common.py b/robot/common.py
index bbe3c14..45dbfc3 100644
--- a/robot/common.py
+++ b/robot/common.py
@@ -3,7 +3,10 @@
from server.hints import Hint, HintSequence
hint_type = {
+ 'no_hint': Hint('no_hint'),
+ 'system_error': Hint('system_error'),
+ 'test_results': Hint('test_results'),
}
-def hint(program, solved_problems):
+def hint(program):
return []
diff --git a/robot/sl.py b/robot/sl.py
index 2a45d0f..9ffcc40 100644
--- a/robot/sl.py
+++ b/robot/sl.py
@@ -4,4 +4,15 @@ name = 'Robot'
description = 'Uvodni tečaj za robota.'
hint = {
+ 'no_hint': ['''\
+<p>Namig ne obstaja! Poskusi uporabiti misli.</p>
+'''],
+
+ 'system_error': ['''\
+<p><span style="color: red;">Sistemska napaka:</span> [%=message%].</p>
+'''],
+
+ 'test_results': ['''\
+<p>Program je opravil [%=passed%] / [%=total%] testov.</p>
+'''],
}