1
0
mirror of https://github.com/maaslalani/gambit.git synced 2025-02-19 19:00:09 +02:00
gambit/piece/piece.go
2021-12-22 00:17:50 -05:00

15 lines
177 B
Go

package piece
type Piece struct {
Type Type
Color Color
}
func Empty() Piece {
return Piece{NoType, NoColor}
}
func (p Piece) String() string {
return Display[p.Type]
}