From 1766215bf9ffae68c7e71946783f622899db2276 Mon Sep 17 00:00:00 2001 From: Aleksander Sadikov Date: Mon, 14 Mar 2016 14:57:35 +0100 Subject: Plans for divide/3 added. --- prolog/problems/lists/divide_3/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prolog/problems/lists/divide_3') diff --git a/prolog/problems/lists/divide_3/common.py b/prolog/problems/lists/divide_3/common.py index 6a94a73..544dbc4 100644 --- a/prolog/problems/lists/divide_3/common.py +++ b/prolog/problems/lists/divide_3/common.py @@ -87,7 +87,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_truthTO(engine_id, 'last_elem([], [], [])'): return [{'id': 'base_case'}] # target predicate seems to always be false -- cgit v1.2.1