Go to file
Arthur POULET 84ef972fec
documentation: Update forge urls
2021-03-27 11:36:09 +01:00
spec fix: update to crystal 1.0.0 2021-03-23 23:32:33 +01:00
src fix: update to crystal 1.0.0 2021-03-23 23:32:33 +01:00
.gitignore Add exploding attribute to dice (no stats change yet) 2017-10-02 16:07:04 +02:00
.travis.yml Add exploding attribute to dice (no stats change yet) 2017-10-02 16:07:04 +02:00
CHANGELOG.md Update CHANGELOG and add few documentation lines 2016-08-28 00:07:55 +02:00
LICENSE init project 2016-07-04 13:40:33 +02:00
Makefile fix: update to crystal 1.0.0 2021-03-23 23:32:33 +01:00
README.md documentation: Update forge urls 2021-03-27 11:36:09 +01:00
shard.yml fix: Fix crystal version required 2021-03-23 23:54:23 +01:00

README.md

rollable

Roll and parse dices

Works with crystal v1.0.0

Installation

travis

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

  1. Fork it ( https://git.sceptique.eu/Sceptique/rollable/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • Sceptique Arthur Poulet - creator, maintainer