deckjs
TypeScript icon, indicating that this package has built-in type declarations

3.5.1 • Public • Published

Simple way to create multiple decks.

1 deck:

  let deck = new Deck(1);

1 deck with 2 jokers

  let deck = new Deck(1, 2);

6 decks

  let deck = new Deck(6);

Remember to shuffle before using.

Also only one method to get a card: getCard()

If all cards are used then null is returned.

Readme

Keywords

none

Package Sidebar

Install

npm i deckjs

Weekly Downloads

1

Version

3.5.1

License

MIT

Unpacked Size

42.9 kB

Total Files

37

Last publish

Collaborators

  • santoshjoseph99