FourthTry.Frame.Next2Ball C# (CSharp) Method

Next2Ball() private method

private Next2Ball ( ) : int
return int
        private int Next2Ball()
        {
            var nextIsStrike = Next.FirstBall == 10;
            var nextIsNotLast = Next.Next != null;
            if (nextIsStrike && nextIsNotLast)
            {
                return Next.Next.FirstBall;
            }
            return Next.SecondBall;
        }