BCDice
Install
$ npm install --save bcdice
Usage
import BCDice from '../bcdice-js/BCDice';
import 'bcdice/lib/diceBot/Cthulhu';
console.log(BCDice.games);
const bcdice = new BCDice();
const [result, rands] = bcdice.roll('CC', 'Cthulhu');
console.log(result, rands);
Development
Install
$ gem install opal
$ npm run install
Build
$ npm run build
Test
$ npm test