forked from potassco/pddl-instances
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain.pddl
29 lines (27 loc) · 807 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
;; Peg Solitaire domain
(define (domain pegsolitaire-netbenefit)
(:requirements :typing :goal-utilities)
(:types location - object)
(:predicates
(IN-LINE ?x ?y ?z - location)
(occupied ?l - location)
(free ?l - location)
)
(:action jump
:parameters (?from - location ?over - location ?to - location)
:precondition (and
(IN-LINE ?from ?over ?to)
(occupied ?from)
(occupied ?over)
(free ?to)
)
:effect (and
(not (occupied ?from))
(not (occupied ?over))
(not (free ?to))
(free ?from)
(free ?over)
(occupied ?to)
)
)
)