pokereval
A poker hand evaluator
Summary
| Latest Version | 0.1.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-08-09 05:35 |
Tags
Authors
- jasonlu7
Installation
nimble install pokereval
choosenim install pokereval
git clone https://github.com/jasonlu7/pokereval
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| pokereval | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 1.0.0 | No |
Source
| Repository | https://github.com/jasonlu7/pokereval |
|---|---|
| Homepage | https://github.com/jasonlu7/pokereval |
| Registry Source | nimble_official |
README
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"]))