Skip to content

An expressive crystal implementation for dice and random rolls. 🎲

License

Notifications You must be signed in to change notification settings

Lucie-Dispot/crystal_rollable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollable

Roll and parse dices

Works with crystal v0.23.0

Installation travis

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

  1. Fork it ( https://github.com/Nephos/crystal_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

  • Nephos Arthur Poulet - creator, maintainer

About

An expressive crystal implementation for dice and random rolls. 🎲

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Crystal 98.5%
  • Makefile 1.5%