public static bool IsJackpot(SlotsResult result) { if (result.ResultOne == result.ResultTwo && result.ResultTwo == result.ResultThree) { return(true); } return(false); }
public static bool IsDouble(SlotsResult result) { if (result.ResultOne == result.ResultTwo) { return(true); } if (result.ResultTwo == result.ResultThree) { return(true); } return(false); }
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); }