An open API service indexing awesome lists of open source software.

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.

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 :)