Module board

Source
Expand description

Representation of the board specified by the board config and used in-game, as well as associated functions and data structures. See: Board

Modules§

caniseeu
An algorithm to determine if the line of sight between two coordinates on a board is blocked or not.
routing

Structs§

Board
Representation of the board specified by the board config and used in-game.
BoardSize
Contains a board’s width and height.
Coord
A coordinate on a board. Contains x and y components and can be constructed using xy.
Directions
A Set of Directions.

Enums§

BoardError
Direction
A direction on the board
TileType
The “Field Type” enum from the spec.

Functions§

xy
Quick way to construct a coordinate without having to use the lengthy Coord { x: _, y: _ } struct syntax.