示例#1
0
        /// <summary>
        /// record a ball score in the frame.
        /// </summary>
        /// <param name="score">score of the ball between -X and X. where X is the number of possible pins. negative numbers allow for faults to be recorded.</param>
        public override void MarkScore(int score)
        {
            base.HandleFault(score);

            BowlingNumber ballScore = new BowlingNumber();

            ballScore.Value = score;
            BallScores.Add(ballScore);

            HandleFrameStatus();
        }
示例#2
0
        /// <summary>
        /// record a ball score in the frame.
        /// </summary>
        /// <param name="score">score of the ball between -X and X. where X is the number of possible pins. negative numbers allow for faults to be recorded.</param>
        public virtual void MarkScore(int score)
        {
            HandleFault(score);

            BowlingNumber ballScore = new BowlingNumber();

            ballScore.Value = score;
            BallScores.Add(ballScore);

            HandleFrameStatus();
        }