runeterra_decks

Legends of Runeterra deck/card code encoder/decoder

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install runeterra_decks
choosenim install runeterra_decks
git clone https://github.com/SolitudeSF/runeterra_decks

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
runeterra_decks - - - - - -

Source

Repository https://github.com/SolitudeSF/runeterra_decks
Homepage https://github.com/SolitudeSF/runeterra_decks
Registry Source nimble_official

README

runeterra_decks

Legends of Runeterra deck/card code encoder/decoder and card infomation provider in Nim.

Example usage

import runeterra_decks/[cards, codes]


let code = "CEBAIAYGAQDQQDYHAMER2IZNGM2DOVICAEBQMCICAMETYYQBAEBQSEY"
var (deck, format, version) = parseDeck code

echo deck[10].code

deck[5].card = Card(`set`: 1, faction: Noxus, number: 5)

echo deck.serialize

Card info

You can query card info using runeterra_decks/info module which provides getInfo procedures. This significantly increases binary size.

echo deck[5].getInfo.name

if deck[0].getInfo.supertype == csupChampion:
  echo deck[0].getInfo.levelupDescription

for cards in deck:
  let info = cards.getInfo
  if csubSpider in info.subtypes and info.cost > 2:
    echo info.name

Or you can query entire runeterra library.

import tables, runeterra_decks/[info, cards]

for card, info in runeterraLibrary:
  if DoubleStrike in info.keywords:
    echo info