public class Game
extends joueur.BaseGame
Modifier and Type | Field and Description |
---|---|
int |
boardHeight
The height of the board for the Y component of a checker.
|
int |
boardWidth
The width of the board for X component of a checker.
|
Checker |
checkerMoved
The checker that last moved and must be moved because only one checker can move during each players turn.
|
boolean |
checkerMovedJumped
If the last checker that moved jumped, meaning it can move again.
|
java.util.List<Checker> |
checkers
All the checkers currently in the game.
|
Player |
currentPlayer
The player whose turn it is currently.
|
int |
currentTurn
The current turn number, starting at 0 for the first player's turn.
|
static java.lang.String |
gameVersion
The hash of the game version we have locally.
|
int |
maxTurns
The maximum number of turns before the game will automatically end.
|
java.util.List<Player> |
players
List of all the players in the game.
|
java.lang.String |
session
A unique identifier for the game instance that is being played.
|
int |
timeAddedPerTurn
The amount of time (in nano-seconds) added after each player performs a turn.
|
public int boardHeight
public int boardWidth
public Checker checkerMoved
public boolean checkerMovedJumped
public java.util.List<Checker> checkers
public Player currentPlayer
public int currentTurn
public int maxTurns
public java.util.List<Player> players
public java.lang.String session
public int timeAddedPerTurn
public static final java.lang.String gameVersion
© 2020 MST ACM SIG-GAME