1.0.0 • Published 5 years ago
lildeck v1.0.0
lildeck
an NPM package that keeps track of all the cards in a single deck (short for little deck)
Installation
npm i lildeck
Usage
const Deck = require('lildeck');
Documentation
Deck.draw()
- draws a random card from the deck
- removes that card from the deck (so it will not be drawn again)
- returns card
{suit, rank, str, val}
Deck.pickup()
- refills the deck to the standard 52-count
- returns nothing
1.0.0
5 years ago