Git Product home page Git Product logo

lightbringer's Introduction

Lightbringer

Lightbringer is a deck analysis tool for A Game of Thrones LCG 2nd Edition.

It helps you making the right decisions for your deck by providing insights on several statistics such as cost, strength and icon distribution. Furthermore you can assess the viability of your deck using Ligthbringer's setup analysis.

Deck Statistics

Lightbringer provides the deck's distribution of:

  • Factions
  • Icons
  • Character strength
  • Character, attachment, location, event and total costs
  • Plot income, initiative, claim and reserve

Setup statistics

Lightbringer provides the following setup statistics:

  • Distribution of gold, key cards, avoidable card, total cards, distinct characters used and total character strength
  • Number of poor setups and setups with economy or limited cards
  • Average number of characters per icon and average icon strength
  • Cards used and percentage of times used
  • All setups and original hand

Configuration

Lightbringer comes with a default configuration file, but you might want to change it to better analyze your deck, so here is the configuration key:

  • meta.economy-cards: a list of card names, or codes, for cards that provide economy. Lightbringer can automatically pick up cards that provide income, but some cards, such as reducers, need to be included in this list. This list will be updated with each chapter pack release, if necessary.
  • meta.setup-runs: the number of setups that will be analyzed and generated.
  • setup.require-two-characters: whether a setup requires two characters to not be considered poor.
  • setup.require-four-cost-character: whether a setup requires a four cost character to not be considered poor.
  • setup.require-economy: whether a setup requires an economy card to not be considered poor.
  • setup.require-key-card: whether a setup requires a key card to not be considered poor.
  • setup.min-cards-required: the minimum number of cards required for a setup to not be considered poor.
  • setup.key-cards: the list of card names, or codes, for cards that are key to the deck being analyzed.
  • setup.avoidable-cards: the list of card names, or codes, for cards with enter play reactions that can't trigger in setup. All cards with the Bestow keyword are automatically considered avoidable cards.

Run it

Currently, Lightbringer only supports analyzing decks from thronesdb.

Arguments

Lightbringer supports two option input arguments, and one mandatory:

-o, --out <file>   Output Lightbringer analysis to a file
-s, --setup-hands  Include each setup hand in output
deckId             Identifier of the deck to analyse

Run it with sbt

To analyze a given deck, just use its id as an argument for Lightbringer:

sbt "run -o results.txt -s 8787"

Run it with the jar

To analyze a given deck, just use its id as an argument for Lightbringer:

java -jar lightbringer.jar -o results.txt -s 8787

Analysis example

Please check the example results file for an example of an analysis.

lightbringer's People

lightbringer's Issues

Improve output format of setup hands

Right now the setup hands listing is printed in a very bare bones fashion, and it would help if it was better organized (tab separated for example).

Throw proper exceptions

Right now, exceptions that occur in the process of retrieving the JSON payload for all cards, or in unmarshalling the JSON to our domain model, are all the same and very uninformative.

The program should throw the right exceptions and their corresponding stack trace.

Generate Setup statistics

  • Create data structures for storing statistics of Deck setups.
  • Output statistics to a file. Follow the style of Deck statistics.

Output all statistics to a file

Deck statistics output to standard out. They should be written to a file, and also standard out if specified by a command line parameter.

App should close without errors

When exiting the app, the following error is thrown:

[ERROR] [05/16/2017 22:13:46.603] [default-akka.actor.default-dispatcher-4] [akka.actor.ActorSystemImpl(default)] Outgoing request stream error (akka.stream.AbruptTerminationException)

This does not prevent the app from exiting, but should not happen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.