Blame view

code/asp/drafts/hanoiI.lp 206 Bytes
3e0f9b8a   Francisco Coelho   back to work?
1
2
3
4
5
6
7
8
9
10
11
#const moves = 15.

peg(a ; b ; c).
disk(1..4).
init_on(1..4, a).
goal_on(1..4, c).

%*
    Implicit relative locations on a peg.
    In a peg, disk are placed top-down from the largest to the smallest.
*%