Skip to content

Coordinate

Coordinate

Bases: NamedTuple

An object representing a row/column coordinate within a grid.

down()

Get the coordinate below.

Returns:

Type Description
Coordinate

The coordinate below.

left()

Get the coordinate to the left.

Returns:

Type Description
Coordinate

The coordinate to the left.

right()

Get the coordinate to the right.

Returns:

Type Description
Coordinate

The coordinate to the right.

up()

Get the coordinate above.

Returns:

Type Description
Coordinate

The coordinate above.