From f2eaf692038294572e0e5453595c45bc1da92cb6 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 5 Jan 2016 18:42:09 +0100 Subject: Fix parameters for Prolog language hint function --- prolog/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prolog/common.py b/prolog/common.py index 1c83fee..4636936 100644 --- a/prolog/common.py +++ b/prolog/common.py @@ -18,9 +18,9 @@ hint_type = { 'monkey_remove': HintPopup('monkey_remove', style='remove'), } -def hint(program, solved_problems): +def hint(code, aux_code): # Check program for syntax errors. - engine_id, output = prolog.engine.create(code=program) + engine_id, output = prolog.engine.create(code=code) if engine_id is not None: prolog.engine.destroy(engine_id) if 'error' in map(operator.itemgetter(0), output): -- cgit v1.2.1