Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 667 Bytes

README.md

File metadata and controls

17 lines (16 loc) · 667 Bytes

ArtifactDeckCodeKotlin

A Kotlin port of ArtifactDeckCode

Refer to that page for more detailed information on Artifact Deck Codes.

Documentation

Decoder

Decoder returns a Deck object with contains a list of Heroes(ids and turn numbers), Cards(ids and count), and the deck Name.

val decoder = ArtifactDeckDecoder()
val deck = decoder.decode("ADCJQUQI30zuwEYg2ABeF1Bu94BmWIBTEkLtAKlAZakAYmHh0JsdWUvUmVkIEV4YW1wbGU_")

Encoder

Encoder returns a string. This string is the ArtifactDeckCode.

val encoder = ArtifactDeckEncoder()
val deckCode = encoder.encode(deck)