From ea99111b2565035ac60e971db5a050a2d2614bb5 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 6 Oct 2015 18:48:37 +0200 Subject: Add "program is already correct" hints --- prolog/common.py | 3 ++- prolog/sl.py | 16 +++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) (limited to 'prolog') diff --git a/prolog/common.py b/prolog/common.py index 8dca4dd..654ab81 100644 --- a/prolog/common.py +++ b/prolog/common.py @@ -5,7 +5,8 @@ import prolog.engine from server.hints import Hint, HintSequence hint_type = { - 'no_hint': HintSequence('no_hint', 4), + 'no_hint': Hint('no_hint'), + 'program_already_correct': Hint('program_already_correct'), 'system_error': Hint('system_error'), 'test_results': Hint('test_results'), 'syntax_error': Hint('syntax_error'), diff --git a/prolog/sl.py b/prolog/sl.py index 293f5a6..1de28ba 100644 --- a/prolog/sl.py +++ b/prolog/sl.py @@ -4,15 +4,13 @@ name = 'Prolog' description = 'Uvodni tečaj prologa.' hint = { - 'no_hint': ['''\ -

Namig ne obstaja! Poskusi uporabiti misli.

-''', '''\ -

Ma res ti pravim, možgani so tvoje največje bogastvo…

-''', '''\ -

… razen ledvic, te so vredne več na črnem trgu.

-''', '''\ -

Definicija norosti: poskušati isto in pričakovati drugačen rezultat.

-'''], + 'no_hint': '''\ +

Namig ne obstaja.

+''', + + 'program_already_correct': '''\ +

Tvoj program je pravilen!

+''', 'system_error': ['''\

Sistemska napaka: [%=message%].

-- cgit v1.2.1