Example #1
0
 public GameManager(IBoard board)
 {
     GameBoard = board;
     _firstPlayer = Player.Human;
     _currentPlayer = _firstPlayer;
     boardContent = GameBoard.Content;
     noWinner = null;
     GameState = new GameState {GameOver = false};
 }
Example #2
0
 public GameManager(IBoard board)
 {
     GameBoard      = board;
     _firstPlayer   = Player.Human;
     _currentPlayer = _firstPlayer;
     boardContent   = GameBoard.Content;
     noWinner       = null;
     GameState      = new GameState {
         GameOver = false
     };
 }
Example #3
0
 private void setWinningGameState(Winner winner)
 {
     GameState.GameTied = false;
     GameState.GameOver = true;
     GameState.Winner = winner;
 }
Example #4
0
 private void setWinningGameState(Winner winner)
 {
     GameState.GameTied = false;
     GameState.GameOver = true;
     GameState.Winner   = winner;
 }