Copyright | (c) Ghais Issa 2021 |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Poker.Holdem.Evaluate
Description
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
Arguments
:: Card | c1 |
-> Card | c2 |
-> Card | c3 |
-> Card | c4 |
-> Card | c5 |
-> Card | c6 |
-> Card | c7 |
-> HandRank | The rank of the hand. |
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.