bgammon/player.go

17 lines
318 B
Go

package bgammon
type Player struct {
Number int8 // 1 black, 2 white
Name string
Rating int
Points int8
Entered bool // Whether all checkers have entered the board. (Acey-deucey)
Inactive int // Inactive time. (Seconds)
}
func NewPlayer(number int8) Player {
return Player{
Number: number,
}
}