You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
spec | 2 years ago | |
src | 2 years ago | |
.gitignore | 5 years ago | |
.travis.yml | 5 years ago | |
CHANGELOG.md | 7 years ago | |
LICENSE | 7 years ago | |
Makefile | 2 years ago | |
README.md | 2 years ago | |
shard.yml | 2 years ago |
README.md
rollable
Roll and parse dices
Works with crystal v1.0.0
Installation
Add this to your application's shard.yml
:
dependencies:
rollable:
git: https://git.sceptique.eu/Sceptique/rollable
branch: master
Usage
require "rollable"
Rollable::Roll.parse("2d6+4").test # => Roll 2 dices and add 4 to the sum
Rollable::Roll.parse("!1d20 + !1d8").test # => Exploding dices
Development
TODO: Write development instructions here
Contributing
- Fork it ( https://git.sceptique.eu/Sceptique/rollable/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- Sceptique Arthur Poulet - creator, maintainer