crystal_rollable
rollable
Roll and parse dices
Works with crystal v1.0.0
Installation
Add this to your application's shard.yml
:
dependencies:
rollable:
github: Nephos/crystal_rollable
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://github.com/Nephos/crystal_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
- Nephos Arthur Poulet - creator, maintainer
Repository
crystal_rollable
Owner
Statistic
- 0
- 2
- 0
- 2
- 0
- over 3 years ago
- July 4, 2016
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 22:06:46 GMT
Languages