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