Question: Single - Piece King Moves Create a PDDL domain definition, king in file single - king - domain.pddl , for a single king chess piece
SinglePiece King Moves
Create a PDDL domain definition, king in file singlekingdomain.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 xy
adjacent yy Indicates that the x or y coordinates yy are adjacent
occupied x y Indicates that the square xy is occupied by another untitled piece The domain definition must define a move action with the following signature:
:action move
:parameters p xyxy
Create a compatible PDDL problem definition, singlekingproblem in file singlekingproblem.pddl for an x squares along y direction, and along x direction board, with the following initial state:
The king starts out from the lower left corner of the board
Mark the coordinates and as occupied.
The final condition should be for the king to reach Your objects section must contain only the following:
:objects
king
x x x x x x x
y y y y y y y y
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 singlekingdomain.pddl which defines the king's move, and the file singlekingproblem.pddl that defines the above problem.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
