riichi-hand-rs

crates.io Documentation Build Status MIT licensed

A collection of utilities for working with Riichi Mahjong player hands to use with Rust programming language.

This currently includes:

Usage

Add the following to your Cargo.toml:

toml [dependencies] riichi_hand = "0.1.0"

On the feature flags overview, please refer to the crate documentation.

Example

```rust use riichihand::parser::HandParser; use riichihand::rasterrenderer::fluffystufftilesets::YELLOWFLUFFYSTUFFTILESET; use riichihand::rasterrenderer::{RasterRenderer, RenderOptions};

fn main() { let hand = HandParser::parse("123m123p123sEESS").unwrap(); let image = RasterRenderer::render(&hand, &*YELLOWFLUFFYSTUFFTILESET, RenderOptions::default()); image.save("/tmp/hand.png").unwrap(); } ```

Uses

License

The project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the project by you shall be licensed as MIT, without any additional terms or conditions.

Attribution

This project uses modified riichi-mahjong-tiles by FluffyStuff, licensed under CC BY 4.0.