Playing cards' strings
It's convenient to use Unicode strings while prototyping a card game.
This library is a small wrapper for those strings to make it even more convenient.
Setup
card-deck-strings
can be installed with npm or using a content delivery network URL to embed it on your HTML page
npm i card-deck-strings
or
Usage
Card strings can be obtained by a name or id. The both are case insensitive. The trump strings are obtained by index. See the full list in Wiki.
;const aceOfSpades = ;const as = ;const back = ;const redJoker = ;const whiteJoker = ;const fool = ;
Given loaded in the global context, the methods above live under CardDeck
namespce.
const queenOfDiamonds = CardDeck;
License
Copyright © 2019, Sergey Chernykh. Released under the MIT License.