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

19 lines
234 B
Go
Raw Normal View History

2021-12-21 17:57:16 -05:00
package piece
import (
"github.com/maaslalani/gambit/color"
)
type Piece struct {
Type Type
2021-12-21 22:33:54 -05:00
Color color.Color
}
func Empty() Piece {
return Piece{None, color.None}
}
func (p Piece) String() string {
return Display[p.Type]
2021-12-21 17:57:16 -05:00
}