dnd-dice
v1.0.2
Published
A collection of classes for standard dice rolls and coin flips.
Downloads
10
Maintainers
Readme
A simple collection of classes for quickly creating and using standard dice rolls and even coin flips.
import { Die, Coin } from 'dnd-dice';
const faces = 50;
const dice = new Die(faces);
console.log(d.value); // 1-50
const coin = new Coin();
console.log(c.result); // Heads or Tails
Documentation
For details about class methods and properties please check the documentation.
Need help?
If you've encountered a bug or would like to suggest a feature, feel free to create either a pull request or an issue on the github.