#cards #deck #magic #card-game #playing-cards #card-manipulation

card_play

A set of types, methods and functions for manipulating playing cards

4 releases

0.1.3 Feb 24, 2024
0.1.2 Feb 24, 2024
0.1.1 Feb 22, 2024
0.1.0 Feb 22, 2024

#7 in #deck


Used in 2 crates

MIT/Apache

43KB
616 lines

Card Play

A set of types, methods and functions for manipulating playing cards (common french-suited with or without jokers). Support for cutting, merging, both human style and fully random ordering shuffles, measuring shuffle quality (rising sequence based), drawing cards, moving cards in a deck etc. Handles card stacks containing more than one deck. Target user is someone who want to manipulate the deck such as magicians, etc. rather than users looking for an engine for card games. The solitaire_cypher was the first use.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~4–5.5MB
~97K SLoC