No description
Find a file
2020-05-06 00:09:03 -05:00
src made nimble package 2020-05-05 15:36:03 -05:00
tests made nimble package 2020-05-05 15:36:03 -05:00
.gitignore made nimble package 2020-05-05 15:36:03 -05:00
LICENSE added license 2020-05-05 15:20:35 -05:00
pokereval.nimble made nimble package 2020-05-05 15:36:03 -05:00
README.md add installation instructions to readme 2020-05-06 00:09:03 -05:00

pokereval

A nim poker hand evaluator for Texas Hold'em poker. This is a nim rewrite of OMPEval.

It evaluates hands with 0 to 7 cards (hands with less than 5 cards are filled in with the worst kicker).

The evaluator gives a hand an integer ranking; higher rankings correspond to better hands. The ranking divided by 4096 also gives the hand category (e.g. high card, flush).

Installation

nimble install pokereval

Usage

import pokereval

let eval = newHandEvaluator()
echo eval.evaluate(newHand(@["Ad", "As", "2s", "2h", "2c"]))