# 6. Deckbuilder Rubric and Pitfalls Part of [[Deckbuilder Card Game Capstone]]. Back: [[5. Hand and Board UI on PanelRenderer]]. > [!warning] Code not compiled in Unity > The rubric is a teaching checklist. The engine tests in part 3 passed; the Editor and UI paths were not play-tested. ## 6.1 Playtest rubric Walk this on a build or in Play Mode with a classmate who has not seen the Inspector. A passing slice hits every "yes." | Question | Yes means | |---|---| | Can they name each card's verb from the hand button and description? | Strike, Defend, and Quick are readable without a tooltip essay | | Do they notice energy as a budget? | They stop clicking a 1-cost card at 0 energy and the button is disabled | | Is block visible before the enemy hits? | The HP label shows `+block` after Defend, then it is gone after end turn | | Can they explain a loss? | "I didn't block an 8-damage hit" — not "it just died" | | Does the second fight (if you added one) feel harder for a visible reason? | The `DifficultyProfile` keys, not a hidden `+2` in a script | | Does the HUD survive a reshuffle? | Mid-fight, after the first recycle, the hand still has five legal cards | | Does victory stick? | Killing the enemy does not then apply the enemy's damage | | Do event-channel listeners clean up? | Leaving Play Mode and coming back does not double-fire HUD updates | The **Level Up!** bar is the same as part 1: a failed run should be *legible*. If testers shrug, the HUD or the card text is the fix, not a new mechanic. ## 6.2 Symptom table | Symptom | Check first | |---|---| | `TryPlay` always returns false | Card id on the asset does not match the id in the hand (renamed asset, blank `id`); or not the player's turn; or not enough energy | | Two card assets overwrite each other in the catalog | They share an `Id`. `FightDirector` keeps one `CardData` per id | | Play Mode cost edits persist | You mutated a `CardDefinition` at runtime. The Architecture pitfall: SOs write back to disk in the Editor | | Enemy is the same every "progress" | `Begin` still uses preview multipliers of 1, or the profile is unassigned, or `encounterProgress` is stuck at 0 | | Enemy is wildly strong at progress 1 | You treated `DifficultySample.enemyHealth` as absolute HP instead of a multiplier on `baseEnemyHp` | | Mid-hand the enemy suddenly gets harder | You evaluated the profile during `TryPlay`. Evaluate only at `Begin` (part 4) | | Hand ListView is empty, engine has five cards | `PanelRenderer` Source Asset missing; `RegisterUIReloadCallback` never ran; `FightChanged` asset is not the one the director raises | | Clicking a recycled hand button plays the wrong card | `bindItem` must write `userData = index` every bind; `makeItem` should hook `clicked` once | | Double HUD updates after a domain reload | Listener subscribed twice, or `EventChannel.OnDisable` cleared and a stale MonoBehaviour re-subscribed incorrectly — subscribe only in `OnEnable` | | `MissingReferenceException` on `Raise` | A destroyed view stayed subscribed. Unsubscribe in `OnDisable` ([[ScriptableObject Architecture]]) | | Shuffle "loses" a card | You added the played card to discard *before* a draw effect on an empty draw pile, then drew it back (or dropped it). The tested engine discards after draw (part 3) | | `InAudio`-style compile errors | Wrong series. This capstone has no Vivox types | ## 6.3 Honest next assignments In this order, not all at once: 1. Three encounters, `encounterProgress` at 0, 0.5, 1, same starter deck. 2. A card-reward pick after victory — three `CardDefinition` choices, one added to the director's deck list. 3. A shop that reads prices from [[4. Economy Tuning Sheets and CSV Import]] and the unused `rewardMultiplier` on the sample. 4. DDA from [[3. Dynamic Difficulty Adjustment and Rubber-Banding]], committed only at the next `Begin`. 5. Juice: listen to `CardPlayed` for a short USS class on the enemy HP label. No new rules. When that is fun, you have earned a map. Not before. Back to the hub: [[Deckbuilder Card Game Capstone]].