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 GameCompletedEventArgs(GameState gameState)
 {
     GameState = gameState;
 }
Exemplo n.º 3
0
 protected virtual void OnGameCompleted(GameState gameState)
 {
     if (GameCompleted != null)
     {
         GameCompleted(this, new GameCompletedEventArgs(gameState));
     }
 }