1
0
mirror of https://github.com/maaslalani/gambit.git synced 2025-01-03 22:52:10 +02:00
gambit/piece/type.go

24 lines
320 B
Go
Raw Normal View History

2021-12-22 00:57:16 +02:00
package piece
type Type string
const (
Pawn Type = "P"
Knight Type = "N"
Bishop Type = "B"
Rook Type = "R"
Queen Type = "Q"
King Type = "K"
2021-12-22 07:12:43 +02:00
NoType Type = " "
2021-12-22 00:57:16 +02:00
)
2021-12-22 05:33:54 +02:00
var Display = map[Type]string{
Bishop: "♝",
King: "♚",
Knight: "♞",
Pawn: "♟",
Queen: "♛",
Rook: "♜",
2021-12-22 07:12:43 +02:00
NoType: " ",
2021-12-22 05:33:54 +02:00
}