crow

Types

pub type Gamestate {
  Gamestate(round: Round, board: Board)
}

Constructors

  • Gamestate(round: Round, board: Board)
pub type Move {
  Move(path: List(Coordinate), captures: List(Coordinate))
}

Constructors

  • Move(path: List(Coordinate), captures: List(Coordinate))

Functions

pub fn deploy(state: Gamestate, position: String, player: String, piece: Piece) -> Gamestate
pub fn get_path(state: Gamestate, position: String) -> Move
pub fn new() -> Gamestate
pub fn players(state: Gamestate, p1: String, p2: String) -> Gamestate
Search Document