◈ CARDS DESIGN STUDIO← Design library

Deck design and simulation lab

The simulation workbench and playable development set share the same rules engine. The current candidate contains 72 designs: 42 units and 30 tactics, with six 30-card starter recipes and a seventh Formation Mix found by unrestricted deck search. The card count is flexible; further additions need a useful job. Current balance findings describe what has actually been tested. The original 20-card duel remains available for comparison.

The six plans

Recipe Intended route to victory Main decision
Pressure Early attackers followed by direct damage. Develop a threat, remove a defender, or use a finishing spell.
Durable Midrange Preserve bodies through trades and keep attacking. Repair a survivor or deploy another threat.
Tactical Control Combine targeted damage and removal, then attack through the cleared board. Use safe ability damage or risk a stronger attack.
Support Burst Concentrate temporary power into a worthwhile attacker. Attack with a helper or improve another unit.
Formation Wide Maintain three units to strengthen conditional attackers. Trade a body now or preserve its contribution to Formation.
Resource Attrition Recover cards and useful bodies, then win through surviving threats. Spend energy on recovery or establish a clock.

Formation Mix is included as a visible stress-test opponent and a playable recipe, rather than hidden to make the six starters look better. These are recipe hypotheses, not settled factions or six proven human strategies. The same visible victory condition applies to all: reduce the opposing hero to zero health. Decks contain exactly 30 cards, with at most two copies of each design. Any cards in the selected pool may be mixed; prototype tags do not restrict construction.

Read all cards and recipes · Download the catalog

Rules added to the baseline

Attack or ability. A ready unit can attack or use its printed Exhaust ability on its owner's turn; either exhausts it. New units enter exhausted. Abilities cost no additional energy and obey their own target text. Guard restricts attacks, not abilities or tactics. Temporary power expires at the end of the current turn. Arrival effects are optional and resolve when the unit enters; they do not use readiness.

Formation. A unit with Formation gains its printed extra power while its owner controls at least three units, including itself. Exhausted units count. The bonus changes immediately when units enter or leave. For simultaneous combat, calculate both powers before assigning damage; a casualty changes later attacks, not damage already assigned. The board shows whether each Formation bonus is active.

Second-player opening. Both players open with five cards. The first player skips their first draw. The second player has two energy on their first turn, then follows the usual curve: 2, 2, 3, 4, 5, 6. The first player's curve is 1, 2, 3, 4, 5, 6. This opening was tested separately on the earlier 24-card pool before applying it to the expansion.

Buff-and-heal tactics apply both effects to the same selected unit. Unit damage persists between turns. The other baseline rules—20 hero health, five unit slots, eight-card hand limit at end of turn and one damage per exhausted-deck draw—remain in effect.

What the simulator measures

Reproducible seeds, both starting positions, mirror matches and three CPU priorities help expose bad matchups. Balanced, aggressive and control use the same heuristic family with different priorities; they are not three independent expert players. Every selected priority controls both sides of its games. Results remain separated by priority.

The workbench shows matchup scores, first-player results by mirror deck, pacing by matchup, fatigue finishes, errors and incomplete games. Card usage counts physical copies reaching a hand, plays, attacks, abilities and turns with both attack and ability choices available. Deck-strength totals exclude mirror games. Turns and actions cannot establish a 10–15 minute human match.

Each seed pair is the uncertainty unit. Score each completed game as win 1, draw ½, loss 0, then average the pair. Conservative 95% Hoeffding bounds across n complete pairs use radius sqrt(ln(40)/(2n)), limited to 0–1. A pair containing a cap or error is excluded and counted separately. Combined policies and overall totals are descriptive, without pooled confidence claims. Twenty pairs per cell is a screen, not precise balance measurement.

Games stop at 60 player turns or 300 actions by default. Capped games remain incomplete, never converted into wins, losses or draws. Investigate repeated stalls and cells with more than 1% incomplete games. A low aggregate cap rate can conceal a bad matchup.

Limits of the CPU evidence

The CPU makes mostly one-action decisions, with limited immediate attack follow-up for temporary buffs. It does not plan long combinations, reserve board slots, or assess future fatigue well. Future uses of recurring abilities receive no dedicated value before activation. Several hand-value rules recognize original cards by ID; newer draw and recovery cards use generic values. Its opening redraw favors cheap units. These biases can understate slower strategies or overvalue proactive bodies.

The expected draw placeholder is Ridge Walker in the current and comparison catalogs. Its identity depends on card order and costs. Balance runs assert this identity with --expect-draw-card ridge-walker; all runs record the derived ID in their provenance. Source hashes and complete catalogs identify the inputs. A CPU loss is a reason to inspect a card, not automatic evidence that it needs a buff for humans.

Human matches still determine learning time, pacing, meaningful choices and enjoyment. The user's positive experience with the original duel supports continuing development, but does not certify the expanded pool.

Running an experiment

Edit/import recipes in the browser, run a batch, and download the report. From the project directory:

npm run simulate -- --catalog public/duel-lab-cards.json --expect-draw-card ridge-walker --pairs 20 --seed 20261203 --policies balanced,aggressive,control --out artifacts/my-screen.json
node scripts/assess-balance.mjs artifacts/my-screen.json artifacts/my-summary.json

Reports preserve the catalog, seeds, caps, CPU version and weights, source fingerprints, and sampled action traces. Reproduce a report's samples with its matching archived code:

npm run simulate -- --replay path/to/report.json

Searching beyond the starter recipes

The local search tool swaps one physical card at a time, preserving 30 cards and the two-copy maximum. The selected opponent recipes (one to three) stay fixed throughout a search. Candidates reuse training seeds; only the selected recipe and original are compared on disjoint held-out seeds afterward. A proposal with errors or capped training games cannot be selected. Reports distinguish training from held-out results and never modify the published pool automatically.

npm run search-decks -- --catalog public/duel-lab-cards.json --expect-draw-card ridge-walker --deck durable-midrange --opponents pressure,tactical-control,formation-wide --iterations 60 --pairs 8 --heldout-pairs 20 --policies balanced,aggressive --seed 20261203 --out artifacts/my-search.json

This bounded local search can expose a stronger mixture but cannot establish that no dominant deck exists. Check promising challengers against all starters and search for counters with the challenger held fixed. Reject improvements that disappear on fresh seeds. A batch used to revise cards is tuning data, even if it originally served as confirmation.