summaryrefslogtreecommitdiff
path: root/prolog
diff options
context:
space:
mode:
Diffstat (limited to 'prolog')
-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):