Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
type RankHand = [PlayingCard] Source #
type KickerHand = [PlayingCard] Source #
orderOfAceRank :: AceRank -> Order Source #
data PokerHandType Source #
data PokerHandSplit Source #
mkBestHand :: [PlayingCard] -> Maybe PokerHand Source #
isSameSuit :: [PlayingCard] -> Bool Source #
hasConsecutiveRanks :: Order -> [PlayingCard] -> Bool Source #
hasNOfRank :: Int -> [PlayingCard] -> Bool Source #
hasNumNOfRank :: Int -> Int -> [PlayingCard] -> Bool Source #
mkHighCard :: [PlayingCard] -> Maybe PokerHand Source #
isHighCard :: [PlayingCard] -> Bool Source #
isPair :: [PlayingCard] -> Bool Source #
isTwoPair :: [PlayingCard] -> Bool Source #
mkThreeOfAKind :: [PlayingCard] -> Maybe PokerHand Source #
isThreeOfAKind :: [PlayingCard] -> Bool Source #
mkConsecutiveRanks :: [PlayingCard] -> Maybe ([PlayingCard], AceRank) Source #
mkStraight :: [PlayingCard] -> Maybe PokerHand Source #
isStraight :: [PlayingCard] -> Bool Source #
isFlush :: [PlayingCard] -> Bool Source #
mkFullHouse :: [PlayingCard] -> Maybe PokerHand Source #
isFullHouse :: [PlayingCard] -> Bool Source #
mkFourOfAKind :: [PlayingCard] -> Maybe PokerHand Source #
isFourOfAKind :: [PlayingCard] -> Bool Source #
mkStraightFlush :: [PlayingCard] -> Maybe PokerHand Source #
isStraightFlush :: [PlayingCard] -> Bool Source #
mkRoyalFlush :: [PlayingCard] -> Maybe PokerHand Source #
isRoyalFlush :: [PlayingCard] -> Bool Source #
isPokerHandSize :: [PlayingCard] -> Bool Source #
allPossibleHands :: [[PlayingCard]] Source #
allRoyalFlush :: [[PlayingCard]] Source #
allStraightFlush :: [[PlayingCard]] Source #
allFourOfAKind :: [[PlayingCard]] Source #
allFullHouse :: [[PlayingCard]] Source #
allFlush :: [[PlayingCard]] Source #
allStraight :: [[PlayingCard]] Source #
allThreeOfAKind :: [[PlayingCard]] Source #
allTwoPair :: [[PlayingCard]] Source #
allPair :: [[PlayingCard]] Source #
allHighCard :: [[PlayingCard]] Source #