summaryrefslogtreecommitdiff
path: root/prolog/problems/denotational_semantics/prog_8puzzle_2/en.py
blob: fc4974273fbba7922a46c732975853550c732389 (plain)
1
2
3
4
5
6
7
8
9
10
11
# coding=utf-8

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 = {}