diff options
Diffstat (limited to 'prolog/problems')
-rw-r--r-- | prolog/problems/lists/del_3/common.py | 2 | ||||
-rw-r--r-- | prolog/problems/lists/del_3/sl.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/prolog/problems/lists/del_3/common.py b/prolog/problems/lists/del_3/common.py index c984fef..125ece1 100644 --- a/prolog/problems/lists/del_3/common.py +++ b/prolog/problems/lists/del_3/common.py @@ -84,7 +84,7 @@ def hint(code, aux_code): return [{'id': 'del_from_empty_list_success'}] # missing/failed base case - if not prolog.engine.ask_truthTO(engine_id, 'del(qQ, [qQ,qa,qb,qc], [qa,qb,qc])'): + if not prolog.engine.ask_one(engine_id, 'del(qQ, [qQ,qa,qb,qc], [qa,qb,qc])'): return [{'id': 'base_case'}] # target predicate seems to always be false diff --git a/prolog/problems/lists/del_3/sl.py b/prolog/problems/lists/del_3/sl.py index 0875fe0..ce82732 100644 --- a/prolog/problems/lists/del_3/sl.py +++ b/prolog/problems/lists/del_3/sl.py @@ -76,8 +76,8 @@ saj veš, da z največjim veseljem reče "no"! :)</p> 'lost_heads': '''\ <p>Element je zbrisan, ampak prav tako so tudi vsi elementi pred njim, kajne? Si pozabil dati glavo nazaj na začetek seznama, ko se vračaš iz rekurzije?</p> -<p>Poskusi postaviti naslednje vprašanje prologu: -<code>?- del(d, [a,b,c,d,e,f,g], L).</code></p> +<p>Poskusi postaviti naslednje vprašanje prologu:</p> +<p><code>?- del(d, [a,b,c,d,e,f,g], L).</code></p> ''', 'final_hint': '''\ |