From 64873173e6bb758cd22b60df55cf4415b8651359 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 11 Sep 2015 12:02:16 +0200 Subject: Accept a list of solved problems for hint/test Some Prolog problems may be solved using previous solutions. This allows us to test such programs, and still analyze the submission separately. --- prolog/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prolog/common.py') diff --git a/prolog/common.py b/prolog/common.py index 02c74d0..41377bb 100644 --- a/prolog/common.py +++ b/prolog/common.py @@ -10,7 +10,7 @@ hint_type = { 'syntax_error': Hint('syntax_error'), } -def hint(program): +def hint(program, solved_problems): # Check program for syntax errors. engine_id, output = prolog.engine.create(code=program) if engine_id is not None: -- cgit v1.2.1