crow
Types
pub type Check {
Check(
can_move: Bool,
player: Player,
piece: Piece,
path: List(Coordinate),
captures: List(Coordinate),
)
}
Constructors
-
Check( can_move: Bool, 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_current_player(state: Gamestate) -> String
pub fn get_players(state: Gamestate) -> List(String)
pub fn get_positions(state: Gamestate) -> Map(Coordinate, Check)