Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zmitchell/roll-server
A Rocket application that rolls dice for D&D
https://github.com/zmitchell/roll-server
dungeons-and-dragons rocket rust
Last synced: 18 days ago
JSON representation
A Rocket application that rolls dice for D&D
- Host: GitHub
- URL: https://github.com/zmitchell/roll-server
- Owner: zmitchell
- License: apache-2.0
- Created: 2020-04-18T17:15:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-18T17:29:11.000Z (almost 5 years ago)
- Last Synced: 2024-11-10T07:24:03.945Z (3 months ago)
- Topics: dungeons-and-dragons, rocket, rust
- Language: Rust
- Size: 13.7 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Roll-Server
This is a simple Rocket application that rolls dice for role-playing games. It is meant to be used as a teaching tool for learning Rocket.
If you run the server and visit `localhost:8000/roll/d` it will roll `number` dice of size `size`, where `size` may be 4, 6, 8, 10, 12, 20, or 100 (the common RPG dice sizes). The maximum number of dice that may be rolled is 255, which is chosen mostly arbitrarily.
For example, if you visit `/roll/4d6` the output may be
```text
2 + 5 + 4 + 3 = 14
```If you visit `/roll/crit/` it will roll critical hit damage equal to a normal dice roll plus a dice roll at maximum damage.
Using `/roll/crit/4d6`:
```text
1 + 1 + 5 + 5 + 24 = 36
```## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.