/PokerOdds-SpecialK-FSharp

F# port of Kenneth Shackleton's Texas Hold'em 5- and 7-card hand evaluator written in C++

Primary LanguageF#

PokerOdds-SpecialK-FSharp

F# port of Kenneth Shackleton's Texas Hold'em 5- and 7-card hand evaluator written in C++

Link to original source https://github.com/kennethshackleton/SpecialKEval

Example as done in Test.fs

//Five card example
let fiveCardEval = new FiveCardEvaluator.FiveEval()
fiveCardEval.Initialize() |> ignore
let rank5 = fiveCardEval.GetRank(0, 4, 8, 12, 16);

//Seven card example
let sevenEval = new SevenCardEvaluator.SevenEval()
sevenEval.Initialize() 
let rank = sevenEval.GetRank(0, 4, 8, 12, 16, 20, 24);

//Initialize Loads all of the necessary arrays for evaluating hands