core.Player module¶
-
class
Player(game, boardAR)[source]¶ ” Represents a random player, is subclassed to create human and intelligent players
Variables: - boardAR (BoardAndRules) – A reference to the board (and rules)
- game (Game) – A reference to the game
- order (int) – Tells if the player is the first to play or the second, is used to select the type of mark used on the board !! initialised with -1, must be set !!
- statistic (PlayerStatistic) – Saves the stats of the player
Warning
player.order must be set by the game