コード例 #1
0
ファイル: MemoryGame.cs プロジェクト: phicuong08/memorymatch
        /// <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;
     }
 }