Package: blocks-world

Generic Function blocks-world:block-position

Lambda List

blocks-world:block-position (instance)

Arguments

instance -- a blocks-world:basic-block instance

Return Value

The list of two integers for the position.

Details

Returns the position of the block. 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

2025-09-06