2023-07-31 23:46:28 +00:00
|
|
|
package bgammon
|
|
|
|
|
|
|
|
type Player struct {
|
2024-01-17 21:03:20 +00:00
|
|
|
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)
|
2024-08-01 21:36:49 +00:00
|
|
|
Icon int // Profile icon.
|
2023-07-31 23:46:28 +00:00
|
|
|
}
|
2023-08-21 04:21:49 +00:00
|
|
|
|
2024-01-06 02:18:54 +00:00
|
|
|
func NewPlayer(number int8) Player {
|
2023-08-23 00:05:35 +00:00
|
|
|
return Player{
|
2023-08-21 04:21:49 +00:00
|
|
|
Number: number,
|
|
|
|
}
|
|
|
|
}
|