#cards #poker #hand-evaluation

playing-cards

A Rust library for playing cards and poker hand evaluation

7 releases

0.1.3 Aug 12, 2024
0.1.2 Aug 13, 2023
0.0.4 Jul 4, 2022

#82 in Simulation

Download history 61/week @ 2024-08-13 10/week @ 2024-09-10 7/week @ 2024-09-17 15/week @ 2024-09-24 4/week @ 2024-10-01

418 downloads per month

MIT/Apache

230KB
3.5K SLoC

playing-cards

A Rust library for playing cards and poker hand evaluation

Crates.io Docs.rs

DISCLAIMER

This library is still in early development. While I will try to mitgate such a case from occuring, features may be subject to breaking changes across minor version changes. Be sure to check the docs for updates on any changes and deprecations.

MSRV (Minimum Supported Rust Version)

Requires rustc 1.62+

Features

Core

Here is a list of types included within the Core package:

  • Value
  • Suit
  • Card
  • CardDeck

Poker

Here is a list of types included within the Poker feature:

  • Evaluators
    • High Evaluator
    • 2-7 Low Evaluator
    • A-5 Low Evaluator (TODO)
    • Omaha High Evaluator
    • Omaha Hi-Lo Evaluator
    • Dramaha High Evaluator
    • Dramaha 2-7 Evaluator (TODO)
    • Dramahadugi Evaluator (TODO)
    • Dramaha 0 Evaluator (TODO)
    • Dramaha 49 Evaluator (TODO)
    • Shortdeck High Evaluator (TODO)
    • Badugi Evaluator

License

Licensed under either of

at your option.

Contributing

Please see CONTRIBUTING.md for more information.

Dependencies

~0.8–1.7MB
~34K SLoC