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.
Arthur Poulet 9859028786
Merge branch 'patch-1'
3 years ago
spec Improve and fix exploding dice 3 years ago
src Improve and fix exploding dice 3 years ago
.gitignore init project 4 years ago
.travis.yml init project 4 years ago Update CHANGELOG and add few documentation lines 4 years ago
LICENSE init project 4 years ago
Makefile Fix die explosions 3 years ago Update README 3 years ago
shard.yml Add exploding attribute to dice (no stats change yet) 3 years ago


Roll and parse dices

Works with crystal v0.23.0

Installation travis

Add this to your application's shard.yml:

    github: Nephos/crystal_rollable


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


TODO: Write development instructions here


  1. Fork it ( )
  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


  • Nephos Arthur Poulet - creator, maintainer