Tabletop.Grid (tabletop v1.1.2)
This module provides functions specific to traversing a square board where positions are represented by 2D coordinate Tuples.
Link to this section Summary
Functions
Adds two positions together and returns the result.
Returns a list of neighbours from the given position, 1 unit in each cardinal direction.
Link to this section Functions
Link to this function
add(a, b)
Adds two positions together and returns the result.
Link to this function
cardinal_points(arg)
Returns a list of neighbours from the given position, 1 unit in each cardinal direction.