Eternal Power Calculator
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc.json
.gitignore
EternalThroneBackground.jpeg
README.md
build-semantic.sh
conditional.svg
crest.svg
depleted.svg
dist.sh
epc-code.js
epc-deck.js
epc-deck.test.js
epc-graph.js
epc-polyfill.js
epc-table.js
epc-test.js
epc-ui.js
epc.css
generate.sh
icon-fire.png
icon-justice.png
icon-primal.png
icon-shadow.png
icon-time.png
index.html
influence-graph-menu.png
jest.config.js
jquery-1.12.4.min.js
link.svg
lint.sh
menu-help-icon.png
merging-with-shiftstoned.md
merriweather-regular.woff
merriweather-regular.woff2
monument.svg
navigation-menu.png
open-sans-condensed-bold.woff
open-sans-condensed-bold.woff2
open-sans-extra-bold.woff
open-sans-extra-bold.woff2
open-sans-regular.woff
open-sans-regular.woff2
package-lock.json
package.json
power-calculator.png
power-odds-table-menu.png
puppeteer.test.js
semantic-site.variables
semantic.json
semantic.min.css
semantic.min.js
shiftstoned.png
standard.svg
sum.js
sum.test.js
undepleted.svg
url-search-params.js
waystone.svg

README.md

Overview

Eternal Power Calculator is a tool to assist the deckbuilding process for Dire Wolf Digital's Eternal CCG.

See https://www.direwolfdigital.com/eternal/ for more about Eternal.

Given a decklist, the power calculator will compute the probability of drawing the power and influence necessary to play cards from the deck in a particular number of cards drawn. It will generate an HTML table of the odds of drawing those cards for each of set of influence required by cards in the deck.

Eternal Power Calculator uses jQuery and Semantic-UI as a foundation. See the following for more information:

Development

Eternal Power Calculator contains the following Javascript code:

  • epc-deck.js - Data structures relating to eternal cards and decks
  • epc-graph.js - Graph drawing routines
  • epc-polyfill.js - Polyfill from external sources, for older web browsers
  • epc-table.js - Table generation routines
  • epc-test.js - Tests for odds calculation
  • epc-ui.js - Top level user interface logic

Additional content:

  • index.html - HTML shell for the power calculator
  • epc.css - CSS style sheet for index.html
  • jquery-1.12.4.min.js - Standard jQuery
  • semantic.min.css - Generated Semantic-UI CSS
  • semantic.min.js - Generated Semantic-UI Javascript

Build support:

  • npm run build - Shell script to build project and put it in /dist
  • npm run build:semantic - Build a semantic.min.css and semantic.min.js. You will not need to run this often/ever (it generates the minified dependency).
  • npm run lint - Lint the epc scripts
  • semantic.json - Configuration for Semantic-UI
  • semantic-site.variables - Build variables for Semantic-UI

You will need to install node to run the npm scripts. If you don't want to install node, you can run the bash scripts manually (generate.sh and dist.sh).

Usage

To use Eternal Power Calculator, see https://www.shiftstoned.com/epc/

License

Eternal Power Calculator is licensed under the GNU General Public License 2.0.