summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-10-04 14:59:21 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-10-04 14:59:21 +0200
commitb38db7fe532e60426099471ac4e8d46b38a12f62 (patch)
tree1074ff8802aae0f4717760421c90821b470e9305
parentee0b99ace82a7abdbaa2a64799b60d8f0d48b5fe (diff)
Prolog: reduce inference limit for rev_2
-rw-r--r--prolog/en.py6
-rw-r--r--prolog/problems/lists_advanced/rev_2/common.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/prolog/en.py b/prolog/en.py
index 8c60eb3..17a6fc4 100644
--- a/prolog/en.py
+++ b/prolog/en.py
@@ -22,14 +22,14 @@ hint = {
''',
'monkey_change': '''\
-<p>Check this part.</p>
+<p>Check the highlighted part.</p>
''',
'monkey_insert': '''\
-<p>Add another part.</p>
+<p>Add another goal or clause.</p>
''',
'monkey_remove': '''\
-<p>Remove this part.</p>
+<p>Remove the highlighted part.</p>
''',
}
diff --git a/prolog/problems/lists_advanced/rev_2/common.py b/prolog/problems/lists_advanced/rev_2/common.py
index f79ddca..1ce0031 100644
--- a/prolog/problems/lists_advanced/rev_2/common.py
+++ b/prolog/problems/lists_advanced/rev_2/common.py
@@ -57,7 +57,7 @@ def test(code, aux_code):
if engine_id is not None and 'error' not in map(itemgetter(0), output):
# Engine successfully created, and no syntax error in program.
for query, answers in test_cases:
- if prolog.engine.check_answers(engine_id, query=query, answers=answers, timeout=1.0):
+ if prolog.engine.check_answers(engine_id, query=query, answers=answers, timeout=1.0, inference_limit=1000):
n_correct += 1
except socket.timeout:
pass