Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mark-d-holmberg/dice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice

It rolls dice.

Installation

If available in Hex, the package can be installed by adding dice to your list of dependencies in mix.exs:

def deps do
  [
    {:dice, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/dice.

alias Dice.{Die, Parser, Expression, Builder, Rollable, Roller, Modifier, Tray, Grammar}

Roller.roll("{4d6kh3, 4d6kh3, 4d6kh3, 4d6kh3, 4d6kh3, 4d6kh3}") |> Enum.map(&(&1.total))
[15, 14, 14, 11, 9, 11]

About

Parse Foundry VTT style dice expressions using Elixir!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages