3 stable releases
Uses old Rust 2015
1.1.2 | Dec 18, 2015 |
---|---|
1.1.1 | Jul 6, 2015 |
#4 in #suit
28 downloads per month
Used in 4 crates
7KB
158 lines
#cards-rs
Reusable playing cards library for Rust. See the tests for usage examples. Cards are modelled as a tuple of Value and Suit, as can be seen in the src/card.rs file.
The crate is called cards
and you can depend on it via cargo:
[dependencies.cards]
git = "https://github.com/th4t/cards-rs.git"
Related Crates
- cards-rs
- holdem-rs
- pokereval-rs
- pokerlookup-rs
lib.rs
:
cards-rs contains a Card type to represent playing cards and a Deck which is a convenient method to generate reasonable amounts of randomly ordered playing cards.
Dependencies
~345–570KB