https://github.com/vsupalov/pokereval-rs
A Rust library for evaluating poker hands with 5 or 7 cards.
https://github.com/vsupalov/pokereval-rs
Last synced: 4 months ago
JSON representation
A Rust library for evaluating poker hands with 5 or 7 cards.
- Host: GitHub
- URL: https://github.com/vsupalov/pokereval-rs
- Owner: vsupalov
- License: mit
- Created: 2015-05-15T13:04:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-18T21:39:10.000Z (almost 10 years ago)
- Last Synced: 2025-06-07T00:38:27.237Z (5 months ago)
- Language: Rust
- Size: 82 KB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#pokereval-rs
A Rust library, implementating a poker hand evaluator. Based on [the original work](http://suffecool.net/poker/evaluator.html) by Kevin Suffecool (aka Cactus Kev).
The method based on optimizations contributed by Paul D. Senzee's with his hashing based [Optimized Hand Evaluator](http://www.paulsenzee.com/2006/06/some-perfect-hash.html) is currently not functional (tries to access out-of-bounds array values) and has been disabled while the code still remains in *src/perfect.rs*.
The crate is called `pokereval` and you can depend on it via cargo:
```ini
[dependencies.pokereval]
git = "https://github.com/th4t/pokereval-rs.git"
```
## Related Crates
* [cards-rs](https://github.com/th4t/cards-rs)
* [holdem-rs](https://github.com/th4t/holdem-rs)
* **pokereval-rs**
* [pokerlookup-rs](https://github.com/th4t/pokerlookup-rs)
## Cargo Bench
Does not work right now in stable rust *1.5*. Don't expect it to work :)