Exemplo n.º 1
0
        private static int SanitisedRemainingBallsSum(ICollection <int> remainingBalls)
        {
            var skipCount = (remainingBalls.Count > Colours.Count() && remainingBalls.First() != Balls.Red) ? 1 : 0;

            return(remainingBalls.Skip(skipCount).Sum());
        }