Grid Graph
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
movement Rule
MOORE (8-way) or VON_NEUMANN (4-way)
allow Corner Cutting
if true, diagonal moves ignore the passability of the two shoulder cells (default false)