forked from caitriggs/planning-assignment-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-king-problem.pddl
40 lines (40 loc) · 921 Bytes
/
single-king-problem.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
31
32
33
34
35
36
37
38
39
40
(define (problem single-king-problem)
(:domain king)
(:objects
king
x1 x2 x3 x4 x5 x6 x7
y1 y2 y3 y4 y5 y6 y7 y8
)
(:init
(at king x1 y1)
(occupied x7 y7)
(occupied x6 y7)
(adjacent x1 x2)
(adjacent x2 x1)
(adjacent x2 x3)
(adjacent x3 x2)
(adjacent x3 x4)
(adjacent x4 x3)
(adjacent x4 x5)
(adjacent x5 x4)
(adjacent x5 x6)
(adjacent x6 x5)
(adjacent x6 x7)
(adjacent x7 x6)
(adjacent y1 y2)
(adjacent y2 y1)
(adjacent y2 y3)
(adjacent y3 y2)
(adjacent y3 y4)
(adjacent y4 y3)
(adjacent y4 y5)
(adjacent y5 y4)
(adjacent y5 y6)
(adjacent y6 y5)
(adjacent y6 y7)
(adjacent y7 y6)
(adjacent y7 y8)
(adjacent y8 y7)
)
(:goal (at king x7 y8))
)