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