Skip to content

kaijchang/deckstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NovaBlitz Deckstrings

An unofficial port of Hearthstone's deckstrings for NovaBlitz to make copying and sharing decks easy for players and community members.

Encoding Scheme

Virtually identical to Hearthstone's deckstrings, an deckstring consists of:

Header Block

  1. Version (1).

Aspect Block

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).

Card Blocks

There are 3 card blocks:

  1. For 1-copy cards.
  2. For 2-copy cards.
  3. 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.

Implementation

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.

About

Unofficial Hearthstone-Like Deckstrings for NovaBlitz

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published