summaryrefslogtreecommitdiff
path: root/prolog/problems/denotational_semantics/prog_8puzzle_2/en.py
blob: 7969ba44ed3a8b39bbbddc65b08fb787940685de (plain)
1
2
3
4
5
6
7
8
9
name = 'prog_8puzzle/2'
slug = '8-puzzle-solving language'

description = '''\
<p>Write a DCG for solving 8-puzzles. The first symbol in every word is <code>[begin]</code>, followed by any sequence of "instruction" symbols from the set {<code>left</code>, <code>right</code>, <code>up</code>, <code>down</code>}, and finally <code>[end]</code>. The starting symbol should be named <code>prog_8puzzle</code>.</p>

<p>Example words: <code>[begin,left,down,right,end]</code>, <code>[begin,down,end]</code>.</p>'''

hint = {}