An unofficial port of Hearthstone's deckstrings for NovaBlitz to make copying and sharing decks easy for players and community members.
Virtually identical to Hearthstone's deckstrings, an deckstring consists of:
- Version (1).
The first character denotes the number of aspects in the block, the following numbers are the aspects, encoding as 0-4, alphabetically. (eg. Arcane -> 1).
There are 3 card blocks:
- For 1-copy cards.
- For 2-copy cards.
- For 3-copy cards.
Each is led by a character indicating the number of cards in the block, and then the cards, each represented by its card id.
Each integer is encoded as a varint, and then encoded using base-64.
Loose Python and Browser implementations are included in this repository.
<script src="https://cdn.rawgit.com/kajchang/deckstring/43e7b828/js/deckstring.js"></script>
A browser demo is located here.