private void UpdatePoints(SimRoundResult roundResult) { IRoundWinnerPointsLogic roundWinnerPointsPointsLogic = new RoundWinnerPointsPointsLogic(); var roundWinnerPoints = roundWinnerPointsPointsLogic.GetWinnerPoints( roundResult.FirstPlayer.RoundPoints, roundResult.SecondPlayer.RoundPoints, roundResult.GameClosedBy, roundResult.NoTricksPlayer, this.gameRules); switch (roundWinnerPoints.Winner) { case PlayerPosition.FirstPlayer: this.FirstPlayerTotalPoints += roundWinnerPoints.Points; this.firstToPlay = PlayerPosition.SecondPlayer; break; case PlayerPosition.SecondPlayer: this.SecondPlayerTotalPoints += roundWinnerPoints.Points; this.firstToPlay = PlayerPosition.FirstPlayer; break; } }