View Source Adventurous.Point (adventurous v0.1.12)
Link to this section Summary
Functions
Returnes coordinates of adjacent points
Converts num grid to array of ints
Moves Point coordinates by given values.
Prints point grid where map is a Map and every point has assigned integer value.
Reads array of integers and convers it into map of point->value and dimensions of grid.
Creates string representation of grid with marks (#) on given points. Blanks are filled with gap_char.
Link to this section Functions
Returnes coordinates of adjacent points
Converts num grid to array of ints
@spec move( atom() | %{:x => number(), :y => number(), optional(any()) => any()}, map() ) :: %Adventurous.Point.Point2D{x: number(), y: number()}
Moves Point coordinates by given values.
Prints point grid where map is a Map and every point has assigned integer value.
@spec read_num_grid(binary()) :: {map(), non_neg_integer(), non_neg_integer()}
Reads array of integers and convers it into map of point->value and dimensions of grid.
Creates string representation of grid with marks (#) on given points. Blanks are filled with gap_char.