https://github.com/arranf/genesys-dice-roller
https://github.com/arranf/genesys-dice-roller
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/arranf/genesys-dice-roller
- Owner: arranf
- License: mit
- Created: 2022-05-17T22:34:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-02T13:08:43.000Z (over 3 years ago)
- Last Synced: 2026-04-04T16:42:06.183Z (2 months ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# genesys-dice-roller
A simple Rust library for taking a Genesys dice string as input and calculating a result.
## Usage
```rust
use dice_roller::dice::{Dice, RollType};
use std::str::FromStr;
let dice = Dice::from_str("2p2g1y")?;
// Roll dice uses thread RNG
let result = dice.roll_dice();
```
## Example input
```
2p2g1y
```