Copyright | (c) Ghais Issa 2021 |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
A Poker Hand Evaluator based on a perfect hash algorithm based on the work of Henry Lee. The original CPP implementation can be found here: PokerHandEvaluator
Documentation
Rank of a hand.
if (evaluate hand1) > (evaluate hand2)
then hand1 is better than hand2
Evaluate a 7-card hand and return the rank of that hand.
evaluateHand :: Hand -> HandRank Source #
Evaluate a 7-card Texas Hold'em hand returning the rank of the hand.