https://github.com/wookay/lordeckcodes.jl
Legends of Runeterra deck code encoder/decoder in Julia
https://github.com/wookay/lordeckcodes.jl
julia legends-of-runeterra
Last synced: 19 days ago
JSON representation
Legends of Runeterra deck code encoder/decoder in Julia
- Host: GitHub
- URL: https://github.com/wookay/lordeckcodes.jl
- Owner: wookay
- License: other
- Created: 2019-10-22T04:40:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-26T04:09:42.000Z (over 5 years ago)
- Last Synced: 2026-01-18T15:11:06.117Z (5 months ago)
- Topics: julia, legends-of-runeterra
- Language: Julia
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# LoRDeckCodes.jl
| **Documentation** | **Build Status** |
|:-----------------------------------------:|:------------------------------------------------------------------:|
| [![][docs-latest-img]][docs-latest-url] | [![][actions-img]][actions-url] [![][codecov-img]][codecov-url] |
It's a [Julia](https://julialang.org/) package to encode, decode the deck used for [Legends of Runeterra](https://playruneterra.com).
the original repository is [RiotGames/LoRDeckCodes](https://github.com/RiotGames/LoRDeckCodes).
```julia
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.
```julia
(v1.1) pkg> add https://github.com/wookay/LoRDeckCodes.jl.git
```
[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg
[docs-latest-url]: https://wookay.github.io/docs/LoRDeckCodes.jl/
[actions-img]: https://github.com/wookay/LoRDeckCodes.jl/workflows/CI/badge.svg
[actions-url]: https://github.com/wookay/LoRDeckCodes.jl/actions
[codecov-img]: https://codecov.io/gh/wookay/LoRDeckCodes.jl/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/wookay/LoRDeckCodes.jl/branch/master