Package: blocks-world

Function block-position

Lambda List

block-position (instance)

Arguments

Return Value

a list of two integers

Details

Returns the block's position.

The position of a block is specified as a list of its x and y coordinates, where the first axis runs along the table, and the second axis points upwards towards the hand.

Together with the block's width and height, the position determines which parts of the world this block occupies. No other objects can be placed to an overlapping position.

 

See also