public FrameScores CalculateFrameScores() { FrameScores scores = new FrameScores(); var framesQueue = new BowlingFramesQueue(_frames); while (framesQueue.TryDequeue(out var frame)) { IFrameScore score = frame.GetScore(framesQueue); scores.Add(score); } return(scores); }
public IFrameScore GetScore(BowlingFramesQueue frames) { return(frames.GetCurrentScore(this, 1)); }
public IFrameScore GetScore(BowlingFramesQueue frames) { return(new FrameScore(_sum)); }
public IFrameScore GetScore(BowlingFramesQueue frames) { return(new FrameScore(OpenValue)); }