/// <summary> /// Initializes a new instance of the <see cref="MemoryGame" /> class. /// </summary> /// <param name="scoreCalculation">Score calculation provider.</param> /// <param name="highscoreProvider">The high score provider.</param> public MemoryGame(IScoreCalculation scoreCalculation, IHighscoreProvider highscoreProvider) { this.scoreCalculation = scoreCalculation; this.highscoreProvider = highscoreProvider; StartNewGame(); }
/// <summary> /// Once the tricks phase is over, this function calculates and applies the scores and ends the round /// </summary> public void EndTricksRound() { if (!phase2.InTrickPhase) { phase3 = new BasicScoreMechanism(); phase3.CalculateScores(teams, GameCase); RoundInProgress = false; } }