mchess-server/types/shortname.go

17 lines
344 B
Go

package types
type PieceShortName string
const (
PawnShortName PieceShortName = "p"
RookShortName PieceShortName = "r"
KnightShortName PieceShortName = "n"
BishopShortName PieceShortName = "b"
QueenShortName PieceShortName = "q"
KingShortName PieceShortName = "k"
)
func (p PieceShortName) String() string {
return string(p)
}