Esempio n. 1
0
        private int TallyScore(Ball currentBall, Frame currentFrame, Bonuses currentBonuses)
        {
            int total = TallyThisRoll(currentBall, currentFrame);

            total += TallyBonuses(currentBall, currentBonuses);
            return(total);
        }
Esempio n. 2
0
 private int TallyBonuses(Ball currentBall, Bonuses currentBonuses)
 {
     return(currentBall.Score * currentBonuses.Sum());
 }
Esempio n. 3
0
 public Game()
 {
     score          = 0;
     currentFrame   = new Frame(1);
     currentBonuses = new Bonuses();
 }