https://github.com/puse/spb14-die
Loaded die simulator
https://github.com/puse/spb14-die
Last synced: 11 months ago
JSON representation
Loaded die simulator
- Host: GitHub
- URL: https://github.com/puse/spb14-die
- Owner: puse
- Created: 2016-12-16T13:37:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-16T13:39:18.000Z (over 9 years ago)
- Last Synced: 2025-07-17T07:46:31.306Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Die
Loaded die simulator
### Example
~~~js
const Die = require('spb14-die');
let config = new Map([
['Exo' , 30],
['Hopar', 60],
['Venus', 10]
]);
let coin = new Die(config);
die.get().then(console.log); // more likely 'Hopar'
~~~
## Install
~~~sh
npm install spb14-die
~~~
### License
MIT License