bgammon/player.go
2023-10-20 13:51:32 -07:00

13 lines
175 B
Go

package bgammon
type Player struct {
Number int // 1 black, 2 white
Name string
Points int
}
func NewPlayer(number int) Player {
return Player{
Number: number,
}
}