Question: Single - Piece King Moves Create a PDDL domain definition, king in file single - king - domain.pddl , for a single king chess piece

Single-Piece King Moves
Create a PDDL domain definition, king in file single-king-domain.pddl, for a single king chess piece moving on an arbitrary sized board. You must use the following predicates, and no others:
(at ?p ?x ?y)- Indicates that piece ?p is at the square ?x,?y
(adjacent ?y1?y2)- Indicates that the x- or y- coordinates ?y1,?y2 are adjacent
(occupied ?x ?y)- Indicates that the square ?x,?y is occupied by another (untitled) piece The domain definition must define a move action with the following signature:
(:action move
:parameters (?p ?x1?y1?x2?y2)
Create a compatible PDDL problem definition, single-king-problem in file single-king-problem.pddl, for an 8x7(8 squares along y direction, and 7 along x direction) board, with the following initial state:
The king starts out from the lower left corner of the board (1,1).
Mark the coordinates (7,7) and (6,7) as occupied.
The final condition should be for the king to reach (7,8) Your objects section must contain only the following:
(:objects
king
x1 x2 x3 x4 x5 x6 x7
y1 y2 y3 y4 y5 y6 y7 y8
)
The domain definition must be precise enough to ensure that all valid moves are permissible and that all invalid moves are disallowed - we will test your domain definition for correctness.
What to turn in: The file single-king-domain.pddl , which defines the king's move, and the file single-king-problem.pddl that defines the above problem.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!