Esempio n. 1
0
        public static bool IsJackpot(SlotsResult result)
        {
            if (result.ResultOne == result.ResultTwo && result.ResultTwo == result.ResultThree)
            {
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        public static bool IsDouble(SlotsResult result)
        {
            if (result.ResultOne == result.ResultTwo)
            {
                return(true);
            }

            if (result.ResultTwo == result.ResultThree)
            {
                return(true);
            }

            return(false);
        }
Esempio n. 3
0
        public static int GetPointsFromResult(SlotsResult result, int betAmount)
        {
            var points = 0;

            if (IsJackpot(result))
            {
                points = ((int)result.ResultOne + (int)result.ResultTwo + (int)result.ResultThree) *
                         JackpotMultiplier;
            }
            else if (result.ResultOne == result.ResultTwo)
            {
                points = ((int)result.ResultOne + (int)result.ResultTwo) * DoubleMultiplier;
            }
            else if (result.ResultTwo == result.ResultThree)
            {
                points = ((int)result.ResultTwo + (int)result.ResultThree) * DoubleMultiplier;
            }

            if (points > 0)
            {
                return(PointMultiplier(points, betAmount));
            }
            return(0);
        }