/ws-probability-calculator

weiß schwarz probability calculator

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

Weiß Schwarz Probability Calculator

  • runs 100% in browser
  • shareable via url, the whole state gets stored in the url

Current Limitations

  • ignores level-up
  • own deck starts with my_trg = 15 and my_not_trg = 35
  • own waitingroom starts with w_my_trg = 0 and w_my_not_trg = 0
  • opponent waitingroom starts with w_op_cx = 8 - op_cx and w_op_not_cx = 50 - op_cx - op_not_cx

Examples

DISCLAIMER: no idea if correct

Code

right now the following commands are supported:

  • attack DMG
    • does an attack with trigger check
  • attack cx / attack not cx
    • same as attack DMG but does it for each cx or not cx from attack, burn or mill
  • burn DMG
    • does an attack without trigger check
  • burn cx / burn not cx
    • same as burn DMG but does it for each cx or not cx from attack, burn or mill
  • mill COUNT
    • mill cards from opponent (but it into waiting room)
  • mill cx / mill not cx
    • same as mill COUNT but does it for each cx or not cx from attack, burn or mill
  • damage DMG
    • fix damage to opponent
  • damage cx / damage not cx
    • same as damage DMG but does it for each cx or not cx from attack, burn or mill
  • repeat REPEATS
    • repeats everything that is indented after
  • each cx / each not cx
    • for each cx from attack, burn or mill
  • if cx / if not cx
    • if attack, burn (mill) has a cx (cancel)

everything that is not detected as a command gets ignored, can be used as comment..

Overview

displays the weighted average damage for the given cx-count and deck-size. you can click on the cells and headers to select them for the Probabilites.

Probabilites

displays the probability for equal or more than x-dmg. you can click on the column header to change what Overview displays.