Skip to main content
  1. mtg-compiler/

Modeling effect cost

Placeholder. This page validates KaTeX math rendering. Replace the body with the real write-up.

Once a card is a typed tree, we can score it. Model a card’s cost as the sum of its effects’ costs, each weighted by how often it triggers:

$$ C_{\text{card}} = \sum_{i=1}^{n} w_i \cdot c(e_i) $$

where \( c(e_i) \) is the learned cost of effect \( e_i \). Fitting \( c \) to the existing card pool gives a cost surface that generated cards can be checked against — so a new card lands near the power level its mana cost implies.