Constructor
# new Player(side, board)
constructor
Parameters:
Name | Type | Description |
---|---|---|
side |
PlayerSide
|
the side on which the player is on the board |
board |
Board
|
the board on which the player is |
Classes
Methods
# isOnTopSide() → {boolean}
Checks to see if the current player is positioned on the top side of the
board.
true if the player is on the top side.
boolean