Rules
data class Rules(lottoPrizesStart: Int, vikingLottoPrizesStart: Int, euroJackpotPrizesStart: Int, jokerPrizesStart: Int, kenoRule: Rules.KenoPrizeRule, allOrNothingRule: Rules.AllOrNothingPrizeRule, retailPayoutLimit: Double)
Constructors
Link copied to clipboard
constructor(lottoPrizesStart: Int, vikingLottoPrizesStart: Int, euroJackpotPrizesStart: Int, jokerPrizesStart: Int, kenoRule: Rules.KenoPrizeRule, allOrNothingRule: Rules.AllOrNothingPrizeRule, retailPayoutLimit: Double)
Functions
Link copied to clipboard
Link copied to clipboard
fun hasPrize(gameType: GameType, correctNumbers: Int, correctExtraNumbers: Int = 0, rowCount: Int = 0): Boolean
hasPrize will return true if a row for a given type has enough correct numbers to win a prize. Keno is the only game type that needs the row count. Joker game type, correct numbers needs to be after each other, so correct numbers is the biggest collection of correct numbers in a row.
Link copied to clipboard