diff options
Diffstat (limited to 'prolog')
-rw-r--r-- | prolog/common.py | 6 | ||||
-rw-r--r-- | prolog/sl.py | 16 |
2 files changed, 21 insertions, 1 deletions
diff --git a/prolog/common.py b/prolog/common.py index 2dab1c3..1c83fee 100644 --- a/prolog/common.py +++ b/prolog/common.py @@ -2,7 +2,7 @@ import operator import prolog.engine -from server.hints import Hint +from server.hints import Hint, HintPopup id = 1 @@ -12,6 +12,10 @@ hint_type = { 'system_error': Hint('system_error'), 'test_results': Hint('test_results'), 'syntax_error': Hint('syntax_error'), + 'monkey_main': Hint('monkey_main'), + 'monkey_change': HintPopup('monkey_change', style='change'), + 'monkey_insert': HintPopup('monkey_insert', style='insert'), + 'monkey_remove': HintPopup('monkey_remove', style='remove'), } def hint(program, solved_problems): diff --git a/prolog/sl.py b/prolog/sl.py index 1de28ba..68fc838 100644 --- a/prolog/sl.py +++ b/prolog/sl.py @@ -26,4 +26,20 @@ hint = { [%=messages%] </pre> ''', + + 'monkey_main': '''\ +<p>Uspelo mi je popraviti tvoj program. Napotki so prikazani v urejevalniku.</p> +''', + + 'monkey_change': '''\ +<p>Popravi ta del kode.</p> +''', + + 'monkey_insert': '''\ +<p>Dodaj nov del kode.</p> +''', + + 'monkey_remove': '''\ +<p>Odstrani ta del kode.</p> +''', } |