...

Source file src/code.rocket9labs.com/tslocum/bgammon/player.go

Documentation: code.rocket9labs.com/tslocum/bgammon

     1  package bgammon
     2  
     3  type Player struct {
     4  	Number   int8 // 1 black, 2 white
     5  	Name     string
     6  	Rating   int
     7  	Points   int8
     8  	Entered  bool // Whether all checkers have entered the board. (Acey-deucey)
     9  	Inactive int  // Inactive time. (Seconds)
    10  }
    11  
    12  func NewPlayer(number int8) Player {
    13  	return Player{
    14  		Number: number,
    15  	}
    16  }
    17  

View as plain text