From 047792d552872869099cf9bb8c58c576faf933f4 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 1 Oct 2015 21:15:05 +0200 Subject: Add basic language hint files for robot --- robot/common.py | 5 ++++- robot/sl.py | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'robot') 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': ['''\ +

Namig ne obstaja! Poskusi uporabiti misli.

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

Sistemska napaka: [%=message%].

+'''], + + 'test_results': ['''\ +

Program je opravil [%=passed%] / [%=total%] testov.

+'''], } -- cgit v1.2.1