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