public LastScoreFrame(IScoreFrame previousScoreFrame, int firstPinScore) : base(previousScoreFrame) { if (!ScoreHelper.IsValidPinScore(firstPinScore)) { throw new ArgumentOutOfRangeException(nameof(firstPinScore)); } pinScores = new List <int>(3) { firstPinScore }; }
public ScoreFrame(IScoreFrame previousScoreFrame) { this.previousScoreFrame = previousScoreFrame; }
public static string ConvertToFrameScoreString(IScoreFrame scoreFrame) { return(scoreFrame.IsFrameScoreConfirmed ? scoreFrame.FrameScore.ToString() : string.Empty); }
public StrikeScoreFrame(IScoreFrame previousScoreFrame) : base(previousScoreFrame) { SetComplete(); }