/LoRDeckCodes.jl

Legends of Runeterra deck code encoder/decoder in Julia

Primary LanguageJuliaOtherNOASSERTION

LoRDeckCodes.jl

Documentation Build Status

It's a Julia package to encode, decode the deck used for Legends of Runeterra. the original repository is RiotGames/LoRDeckCodes.

julia> using LoRDeckCodes

julia> deck = Deck("CEBAIAIFAEHSQNQIAEAQGDAUDAQSOKJUAIAQCBI5AEAQCFYA")
Deck(CardCodeAndCount[CardCodeAndCount("01SI001", 3), CardCodeAndCount("01SI015", 3), CardCodeAndCount("01SI040", 3), CardCodeAndCount("01SI054", 3), CardCodeAndCount("01FR003", 3), CardCodeAndCount("01FR012", 3), CardCodeAndCount("01FR020", 3), CardCodeAndCount("01FR024", 3), CardCodeAndCount("01FR033", 3), CardCodeAndCount("01FR039", 3), CardCodeAndCount("01FR041", 3), CardCodeAndCount("01FR052", 3), CardCodeAndCount("01SI029", 2), CardCodeAndCount("01FR023", 2)], 0x01)

julia> DeckEncoder.encode_deck(deck)
"CEBAIAIFAEHSQNQIAEAQGDAUDAQSOKJUAIAQCBI5AEAQCFYA"

Installation

  • ] key on Julia REPL.
(v1.1) pkg> add https://github.com/wookay/LoRDeckCodes.jl.git