piece

Types

pub type Kind {
  Pawn
  Knight
  Bishop
  Rook
  Queen
  King
}

Constructors

  • Pawn
  • Knight
  • Bishop
  • Rook
  • Queen
  • King
pub type Piece {
  Piece(color: Color, kind: Kind)
}

Constructors

  • Piece(color: Color, kind: Kind)

Functions

pub fn to_string(piece: Piece) -> String
Search Document