bcdice-jsdeprecated

Bone & Cards is TRPG Dice Bot

Usage no npm install needed!

<script type="module">
  import bcdiceJs from 'https://cdn.skypack.dev/bcdice-js';
</script>

README

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