diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-20 21:38:51 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-20 21:38:51 +0100 |
commit | be147cdaec94c73934e8185a0da8d5456eb5db5f (patch) | |
tree | 3f33ebf5ad176bed0fb6bd962fd332e372ba6078 /prolog/problems/lists_advanced/rev_2 | |
parent | c8d114f863d0d22e802c2296f549565965a43934 (diff) |
Prolog: reorder lists_advanced exercises
Diffstat (limited to 'prolog/problems/lists_advanced/rev_2')
-rw-r--r-- | prolog/problems/lists_advanced/rev_2/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prolog/problems/lists_advanced/rev_2/common.py b/prolog/problems/lists_advanced/rev_2/common.py index ee8c9ac..b673660 100644 --- a/prolog/problems/lists_advanced/rev_2/common.py +++ b/prolog/problems/lists_advanced/rev_2/common.py @@ -6,7 +6,7 @@ import prolog.util from server.hints import Hint, HintPopup id = 111 -number = 18 +number = 30 visible = True facts = None @@ -91,7 +91,7 @@ def hint(code, aux_code): retract(rev([brix, cob], [[cob, brix] | yowza]))'''): return [{'id': 'forcing_result_onto_recursion'}] - if any(t.val in ('last', 'shiftleft', 'shiftright') for t in tokens): + if any(t.val in ('last', 'last_elem', 'shiftleft', 'shiftright') for t in tokens): return [{'id': 'using_other_solutions'}] if prolog.engine.ask_truthTO(engine_id, 'rev([qa, qb, qc, qd], [qa, qb, qc, qd])'): |