poker-0.1.0.0: Texas holdem hand evaluation and simulation.
Copyright(c) Ghais Issa 2021
Safe HaskellNone
LanguageHaskell2010

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

Synopsis

Documentation

newtype HandRank Source #

Rank of a hand.

if (evaluate hand1) > (evaluate hand2) then hand1 is better than hand2

Constructors

HandRank Int 

evaluate Source #

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.