rollable

Version, currently 0.1.44 versions

github.com/Nephos/crystal_rollable

An expressive crystal implementation for dice and random rolls. :game_die:

0 stars
1 dependent
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  rollable:
    github: Nephos/crystal_rollable
    version: ~> 0.1.4

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Author
Arthur Poulet

Dependencies

This version declares no dependencies.

README

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

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