Closed ScottMaclure closed 10 years ago
What about using an existing one?
https://github.com/jhamlet/dice-js
https://github.com/jmhnilbog/owlbear
https://github.com/thebinarypenguin/droll
Standard notation:
I'll start with droll for now.
Edit: Done. May not give us everything we need, I'd suggest forking droll when we want to add more features.
Create as a separate, tested npm module!
Key concept: string based API: 1d6, 1d99, 2d10+4, etc.
http://manpages.ubuntu.com/manpages/precise/en/man6/rolldice.6.html
https://github.com/sstrickl/rolldice