crow
Types
pub type Check {
Check(
player: Player,
piece: Piece,
path: List(Coordinate),
captures: List(Coordinate),
)
}
Constructors
-
Check( player: Player, piece: Piece, path: List(Coordinate), captures: List(Coordinate), )
Functions
pub fn deploy(state: Gamestate, position: String, player: String, piece: Piece) -> Gamestate
pub fn get_position(state: Gamestate, position: String) -> Check
pub fn get_positions(state: Gamestate) -> Map(Coordinate, Check)