0.1.5 • Published 1 year ago

dice-pouch v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

dice-pouch

This library is tiny dice roller tool.

Usage

There two available methods in DicePouch:

  • sequenceRoll(): number[] // return list of all rolls
  • sumRoll(): number // return sum of all rolls

Parameters API - Roll 1d6

    DicePouch.sumRoll(1, 6)
    DicePouch.sequenceRoll(1, 6)

Options API - Roll 2d8

    DicePouch.roll({ count: 2, type: 8 })
    DicePouch.sequenceRoll({ count: 2, type: 8 })
0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.5

1 year ago

0.0.2

2 years ago

0.0.1

2 years ago