-
Notifications
You must be signed in to change notification settings - Fork 56
/
domain.pddl
30 lines (28 loc) · 933 Bytes
/
domain.pddl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
;; Peg Solitaire domain
(define (domain pegsolitaire-temporal)
(:requirements :typing :durative-actions)
(:types location - object)
(:predicates
(IN-LINE ?x ?y ?z - location)
(occupied ?l - location)
(free ?l - location)
)
(:durative-action jump
:parameters (?from - location ?over - location ?to - location)
:duration (= ?duration 1)
:condition (and
(over all (IN-LINE ?from ?over ?to))
(at start (occupied ?from))
(at start (occupied ?over))
(at start (free ?to))
)
:effect (and
(at start (not (occupied ?from)))
(at start (not (occupied ?over)))
(at start (not (free ?to)))
(at end (free ?from))
(at end (free ?over))
(at end (occupied ?to))
)
)
)