simulate_opening_hands
Simulate Commander opening hands and mulligans via Monte Carlo to estimate keep rates, land distribution, and early mana curve.
Instructions
Monte Carlo simulation of opening hands, mulligans, and early mana curve.
Simulates Commander-free-mulligan opening hands and a greedy 5-turn
goldfish to estimate keep rates, kept-hand land distribution, and
spendable mana per turn. Exclude the commander from decklist: it
simulates a 99-card Commander library.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | RNG seed for reproducible results (omit for random) | |
| decklist | Yes | Card entries, excluding the commander (a 99-card Commander library) | |
| keep_rule | No | Keep rule: 'playability' (3-turn goldfish of the hand: development, flood, gas) or 'lands_v1' (legacy effective-land range only) | playability |
| max_lands | No | Maximum effective land cards in a kept hand (flood check, MDFC count 0.5) | |
| min_lands | No | Keep threshold: minimum turn-3 developed mana (playability rule) or minimum effective lands (lands_v1 rule) | |
| iterations | No | Number of simulated games (100-100000) | |
| tutor_aware | No | Detect tutors, count cheap ones as gas, and report per-tutor targets plus the odds of an opening hand holding a tutor | |
| exclude_cards | No | Card names to force-classify as non-mana | |
| free_mulligan | No | Commander free mulligan: the first mulligan redraws 7 cards without bottoming | |
| commander_colors | No | Commander color identity (e.g. 'mardu', 'WBR', 'boros') to enable the playability-rule color screen: hands that cannot source every color are mulliganed | |
| count_mdfc_lands | No | Count modal-double-faced land backs as half a land | |
| gas_cmc_threshold | No | A hand needs at least one non-source card at or below this mana value to be kept (playability rule) | |
| extra_mana_sources | No | Card names to force-classify as mana rocks |