예제 #1
0
        /// <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();
        }
예제 #2
0
파일: Round.cs 프로젝트: Bawaw/Whist
 /// <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;
     }
 }