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:
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
index.html- HTML shell for the power calculator
epc.css- CSS style sheet for
jquery-1.12.4.min.js- Standard jQuery
semantic.min.css- Generated Semantic-UI CSS
npm run build- Shell script to build project and put it in /dist
npm run build:semantic- Build a
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).
To use Eternal Power Calculator, see https://www.shiftstoned.com/epc/
Eternal Power Calculator is licensed under the GNU General Public License 2.0.