GridGraph

constructor(columns: Int, rows: Int, torus: Boolean = false, movementRule: MovementRule = MovementRule.MOORE, allowCornerCutting: Boolean = false)(source)

Parameters

columns

lattice width

rows

lattice height

torus

if true, coordinates wrap at boundaries

movementRule

MOORE (8-way) or VON_NEUMANN (4-way)

allowCornerCutting

if true, diagonal moves ignore the passability of the two shoulder cells (default false)