diff options
Diffstat (limited to 'prolog/problems/lists_advanced/palindrome_1')
-rw-r--r-- | prolog/problems/lists_advanced/palindrome_1/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prolog/problems/lists_advanced/palindrome_1/common.py b/prolog/problems/lists_advanced/palindrome_1/common.py index f1baf4e..bbd28fb 100644 --- a/prolog/problems/lists_advanced/palindrome_1/common.py +++ b/prolog/problems/lists_advanced/palindrome_1/common.py @@ -6,7 +6,7 @@ import prolog.util from server.hints import Hint, HintPopup id = 112 -number = 19 +number = 40 visible = True facts = None @@ -94,7 +94,7 @@ def hint(code, aux_code): if prolog.engine.ask_truthTO(engine_id, 'palindrome(kokos(1))'): return [{'id': 'arbitrary_base_case'}] - if any(t.val == 'last' for t in tokens): + if any(t.val in ('last', 'last_elem') for t in tokens): return [{'id': 'last_used'}] # target predicate seems to always be false |