hasPrize

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.

Parameters

gameType

Game type to check, (the type have different rules).

correctNumbers

the count of numbers, that matches the draw numbers.

correctExtraNumbers

the count of numbers, that matches the draw extra numbers.

rowCount

only used for GameType.KENO and is ignored for every other game type.