summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-01-05 18:42:09 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-01-05 18:42:09 +0100
commitf2eaf692038294572e0e5453595c45bc1da92cb6 (patch)
tree382d5c5445817bcc959fbd4fe1adf795992d4499
parent5902e5a5c40ec8fa32c7af8d4bcc57134a0bea66 (diff)
Fix parameters for Prolog language hint function
-rw-r--r--prolog/common.py4
1 files 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):