diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-12-11 17:01:58 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-12-11 17:01:58 +0100 |
commit | e7ebb26e1c820bbd0d97f99ea94ce1ba5e6e6738 (patch) | |
tree | ba914db5a7a1fd431ef367adc977b09245e19ac3 | |
parent | 3ad0fba1d3215eaf45e18cfa72dd3e7e5228a8b3 (diff) |
Add hints for monkey.fix
-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> +''', } |