Пример #1
0
        public void EndGame(Oponents oponents, Players winners)
        {
            if (oponents.TeamA != winners && oponents.TeamB != winners)
            {
                throw new CgcExceptionCannotEndGameWinnerWasNotOponentInChosenGame();
            }

            this.GamesInSortedQueue.First(game => this.CurrentGameOponents() == game.Oponents).Winners = winners;
            this.AddPointsToWinners(winners, PointsForWinGame, 1);
        }
Пример #2
0
 public void GameEnded(Oponents oponents, Player winner)
 {
     if (winner == null)
     {
     }
 }