FourthTry.Frame.Bonus C# (CSharp) Method

Bonus() private method

private Bonus ( ) : int
return int
        private int Bonus()
        {
            var isStrike = FirstBall == 10;
            var isSpare = !isStrike && (FirstBall + SecondBall == 10);
            if (isSpare)
            {
                return Next1Ball();
            }
            if (isStrike)
            {
                return Next1Ball() + Next2Ball();
            }
            return 0;
        }