An open API service indexing awesome lists of open source software.

https://github.com/multarix/dnd-dice

A collection of classes for standard dice rolls and coin flips.
https://github.com/multarix/dnd-dice

Last synced: 2 months ago
JSON representation

A collection of classes for standard dice rolls and coin flips.

Awesome Lists containing this project

README

          

[![NPM](https://nodei.co/npm/dnd-dice.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/dnd-dice/)

A simple collection of classes for quickly creating and using standard dice rolls and even coin flips.

```js
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](https://projects.multarix.com/dice).

---

# **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](https://github.com/Multarix/dnd-dice).