dou_dizhu
This crate is a Rust toolkit for the Chinese card game Dou Dizhu. It provides hand representation, category recognition, ordering, and validation at both compile time and runtime.
Features
- Hand representation
- All standard Dou Dizhu combinations
- Hand comparison by game rules
- Compile-time and runtime validation
Usage
Add this to your Cargo.toml:
[]
= "0.1"
Then:
use ;
License
Licensed under either of:
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.