dou_dizhu
A Rust toolkit for the Chinese card game Dou Dizhu (斗地主).
This crate implements Dou Dizhu strictly following the Pagat rules, though it uses different terminology.
Features
- Hand representation
- Compile-time and runtime validation
- All standard Dou Dizhu play kinds (solo, pair, trio, chain, airplane, rocket, etc.)
- Play kind recognition
- Play comparison
- Enumerating all plays of specified characteristics within a hand
Usage
Add this to your Cargo.toml:
[]
= "0.2"
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.