-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclimb_grab.pddl
58 lines (53 loc) · 1.07 KB
/
climb_grab.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
(define (problem climb_grab)
(:domain maze)
(:objects
j1 j2 j3 j4 - Junction
p - Player
v - Vendor
m - Monster
key - Key
box - Box
f - Floor
tree - Platform
i - Inventory
s - Shield
banana - Food
w - Weapon
g - Gold
)
(:init
(isConnected j1 j2)
(isConnected j2 j1)
(= (distanceBetweenJunctions j1 j2) 2)
(isConnected j2 j3)
(isConnected j3 j2)
(= (distanceBetweenJunctions j2 j3) 2)
;Platform Levels
(=(platformLevel f) 0)
(=(platformLevel box) 1)
(=(platformLevel tree) 2)
;Box
(atLocation box j2)
(on box f) ;box on the floor so player can push it if need be
;Tree
(atLocation tree j2)
;Key
(atLocation key j2)
(on key box)
;Banana
(atLocation banana j2)
(on banana tree)
;Player
(=(playerHealth) 100)
(atLocation p j1)
(on p f) ;player on the floor initially so they can move between the junctions
(=(inventoryCount) 0)
(=(maxInventorySize) 2)
)
(:goal (and
(atLocation p j3)
(carryItem p banana)
(carryItem p key)
)
)
)