Skip to content

hjSundog/hjdice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hjdice

a dice for trpg game

Usage

> npm install hjdice
import Dice from 'hjdice';
// or 
var Dice = require('hjdice')

var dice = new hjdice();
dice.roll(); // 1-6
dice.getDesc(); // 1d6 + 0

new Dice([config])

config the config for dice

the default is

var _config = {
  dice_amount: 1,
  offset: 0,
  dice_faces: 6
};

Releases

No releases published

Packages

No packages published