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 --- python/common.py | 1 + python/sl.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/common.py b/python/common.py index 26f3881..c754a1a 100644 --- a/python/common.py +++ b/python/common.py @@ -5,6 +5,7 @@ from server.hints import Hint hint_type = { '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/python/sl.py b/python/sl.py index 2600480..af06db9 100644 --- a/python/sl.py +++ b/python/sl.py @@ -35,9 +35,13 @@ Npr., sešteti niz in število ali klicati funkcijo, čeprav tisto ni funkcija, hint = { 'no_hint': ['''\ -

Namig ne obstaja! Poskusi uporabiti misli.

+

Namig ne obstaja.

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

Tvoj program je pravilen!

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

Sistemska napaka: [%=message%].

'''], -- cgit v1.2.1