Crates.io | playin-cards |
lib.rs | playin-cards |
version | 0.1.2 |
source | src |
created_at | 2022-08-06 01:08:01.131646 |
updated_at | 2023-03-24 17:12:52.819132 |
description | ♠ Library for French-suited playing cards |
homepage | |
repository | https://gitlab.com/pezcore/rust-cards |
max_upload_size | |
id | 639637 |
size | 34,247 |
A crate for representing, formatting, and parsing French-Suited playing cards. The main objective of the project is to provide utility to crates implementing card games or card-game analysis.
In keeping with the goals of being a lightweight library, as well as best
practices with regard to separation of
concerns, playin-cards
is designed to be minimal, limiting its scope only the representation and
conversion of playing cards. As such, it does not not provide shuffling, the
concept of hands, or the concept of rank values. Such concerns are specific to
the application using playin-cards
and are therefore left to consumers to
implement. This design maximizes the breadth of use-cases of playin-cards
while minimizing its dependencies.
char
to rank or suitstr
to card