abdn-cs3033-ai
/
cs3033-artificial-intelligence-2023-search-and-planning-2023-resit-heuristic-planning
Public
generated from abdn-cs3033-ai/heuristic-planning
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathblocksworld.pddl
28 lines (24 loc) · 1018 Bytes
/
blocksworld.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
(define (domain blocksworld)
(:requirements :strips :negative-preconditions)
(:predicates (equal ?x ?y) (clear ?x) (onTable ?x) (holding ?x) (on ?x ?y) (handempty))
(:action pickup
:parameters (?ob)
:precondition (and (clear ?ob) (onTable ?ob) (handempty) )
:effect (and (holding ?ob) (not (clear ?ob)) (not (onTable ?ob)) (not (handempty)) )
)
(:action putdown
:parameters (?ob)
:precondition (holding ?ob)
:effect (and (clear ?ob) (onTable ?ob) (not (holding ?ob)) (handempty))
)
(:action stack
:parameters (?ob ?underob)
:precondition (and (clear ?underob) (holding ?ob) (not (equal ?ob ?underob)))
:effect (and (clear ?ob) (on ?ob ?underob) (not (clear ?underob)) (not (holding ?ob)) (handempty))
)
(:action unstack
:parameters (?ob ?underob)
:precondition (and (on ?ob ?underob) (clear ?ob) (not (equal ?ob ?underob)) (handempty))
:effect (and (holding ?ob) (clear ?underob) (not (on ?ob ?underob)) (not (clear ?ob)) (not (handempty)) )
)
)