0.1.5 • Published 2 years ago

dice-pouch v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years 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

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.5

2 years ago

0.0.2

3 years ago

0.0.1

3 years ago