mirror of
https://github.com/maaslalani/gambit.git
synced 2025-02-19 19:00:09 +02:00
15 lines
177 B
Go
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]
|
|
}
|