Beispiel #1
0
 public GameManager(IBoard board)
 {
     GameBoard = board;
     _firstPlayer = Player.Human;
     _currentPlayer = _firstPlayer;
     boardContent = GameBoard.Content;
     noWinner = null;
     GameState = new GameState {GameOver = false};
 }
 public GameCompletedEventArgs(GameState gameState)
 {
     GameState = gameState;
 }
Beispiel #3
0
 protected virtual void OnGameCompleted(GameState gameState)
 {
     if (GameCompleted != null)
     {
         GameCompleted(this, new GameCompletedEventArgs(gameState));
     }
 }