Example #1
0
        private int TallyScore(Ball currentBall, Frame currentFrame, Bonuses currentBonuses)
        {
            int total = TallyThisRoll(currentBall, currentFrame);

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