diff options
Diffstat (limited to 'robot')
-rw-r--r-- | robot/common.py | 5 | ||||
-rw-r--r-- | robot/sl.py | 11 |
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> +'''], } |