summaryrefslogtreecommitdiff
path: root/prolog
diff options
context:
space:
mode:
authorAleksander Sadikov <aleksander.sadikov@fri.uni-lj.si>2016-03-09 20:09:26 +0100
committerAleksander Sadikov <aleksander.sadikov@fri.uni-lj.si>2016-03-09 20:09:26 +0100
commit4fd77108854d7e83ce2d7135ed02b65ba73fc9e9 (patch)
tree9a18d541f2d70598a6351626935f31cb194f7faf /prolog
parent913007d3f60d86c3f4e11733153233434da8607f (diff)
Hints for del/3 updated.
Diffstat (limited to 'prolog')
-rw-r--r--prolog/problems/lists/del_3/common.py2
-rw-r--r--prolog/problems/lists/del_3/sl.py4
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': '''\