PieceKind

public enum PieceKind : String, CustomStringConvertible

Represents a piece kind regardless of it’s color.

  • King piece.

    Declaration

    Swift

    case king = "k"
  • Queen piece.

    Declaration

    Swift

    case queen = "q"
  • Rook piece.

    Declaration

    Swift

    case rook = "r"
  • Bishop piece.

    Declaration

    Swift

    case bishop = "b"
  • Knight piece.

    Declaration

    Swift

    case knight = "n"
  • Pawn piece.

    Declaration

    Swift

    case pawn = "p"

CustomStringConvertible

  • Converts itself into human readable character.

    Declaration

    Swift

    public var description: String { get }