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.
- Board
Size - Contains a board’s width and height.
- Coord
- A coordinate on a board.
Contains
xandycomponents and can be constructed using xy. - Directions
- A Set of Directions.
Enums§
- Board
Error - Direction
- A direction on the board
- Tile
Type - 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.