summaryrefslogtreecommitdiff
path: root/prolog/problems
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems')
-rw-r--r--prolog/problems/lists/last_elem_2/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/prolog/problems/lists/last_elem_2/common.py b/prolog/problems/lists/last_elem_2/common.py
index 1dd3c82..30b15bc 100644
--- a/prolog/problems/lists/last_elem_2/common.py
+++ b/prolog/problems/lists/last_elem_2/common.py
@@ -97,7 +97,7 @@ def hint(code, aux_code):
return [{'id': 'list_returned'}]
# missing/failed base case
- if not prolog.engine.ask_one(engine_id, 'last_elem([qQ], qQ)'):
+ if not prolog.engine.ask_truth(engine_id, 'last_elem([qQ], qQ)'):
return [{'id': 'base_case'}]
# target predicate seems to always be false