1
0
mirror of https://github.com/maaslalani/gambit.git synced 2025-02-21 19:06:36 +02:00
gambit/piece/piece.go
2021-12-21 22:33:54 -05:00

19 lines
234 B
Go

package piece
import (
"github.com/maaslalani/gambit/color"
)
type Piece struct {
Type Type
Color color.Color
}
func Empty() Piece {
return Piece{None, color.None}
}
func (p Piece) String() string {
return Display[p.Type]
}