# Drawstep — Pokémon TCG: table model Generated from Drawstep's game registry (engine id `pokemon`). Wiki page: https://drawstep.xyz/wiki/pokemon · this document: https://drawstep.xyz/wiki/drawstep-pokemon-ai-pack.md. Rules enforcement by the Pokémon TCG engine: setup and mulligans, the turn (one Energy attachment, one Supporter, one Stadium, Retreat), attacks with Weakness / Resistance and every Special Condition, Knock Outs and Prize cards (rule-box Pokémon give 2 or 3), evolution (LV.X, BREAK, VMAX, VSTAR, Mega), Trainers, Tools, Abilities and Special Energy. Card text is translated into steps; a sentence that has no step yet is handed to the table, which resolves it by hand while the engine waits. **Assisted** tables also let the player whose turn it is adjust the board by hand at any time; **free** tables have no rules at all. ## What an assistant can produce for this game A Pokémon card is a card definition with `"game": "pokemon"` and a `pokemon` payload: the printed structure the engine always enforces, plus each rules sentence as steps. A sentence without a step becomes `{ "do": "manual", "text": … }` — the table resolves it by hand — rather than an approximation. ```json { "id": "my-pikachu", "name": "Pikachu", "game": "pokemon", "source": "custom", "types": [ "Pokémon" ], "subtypes": [ "Basic" ], "colors": [ "Lightning" ], "text": "[L][C] Thunder Shock 30: Flip a coin. If heads, your opponent's Active Pokémon is now Paralyzed.", "pokemon": { "category": "Pokemon", "stage": "Basic", "hp": 70, "types": [ "Lightning" ], "tags": [], "weaknesses": [ { "type": "Fighting", "value": "×2" } ], "resistances": [], "retreat": 1, "abilities": [], "attacks": [ { "name": "Thunder Shock", "cost": [ "Lightning", "Colorless" ], "damage": 30, "text": "Flip a coin. If heads, your opponent's Active Pokémon is now Paralyzed.", "effects": [ { "do": "flip", "count": 1 }, { "do": "if", "cond": { "heads": true }, "then": [ { "do": "condition", "target": { "of": "defending" }, "conditions": [ "Paralyzed" ] } ] } ] } ] } } ``` - `category`: Pokemon / Trainer / Energy. Pokémon carry `stage` (Basic, Stage1, Stage2, BREAK, LEVEL-UP, MEGA, VMAX, VSTAR, V-UNION, Baby, Restored), `hp`, `types`, `evolvesFrom`, `weaknesses` (`×2` or `+N`), `resistances` (`-N`), `retreat`, `tags` (ex, V, GX, Tera, Radiant, ACE SPEC …), `ruleBox` and `prizes` (Prize cards it gives up). - Trainers carry `trainerKind` (Item, Supporter, Stadium, Tool, Technical Machine) with `effects`, `cost`, `playCond`, `statics` and `triggers`; Energy carries `energyKind` and `provides`. - Attack and Trainer steps (`do`): flip, if, may, choosePokemon, moreDamage, lessDamage, baseDamage, attackFails, ignore, beforeDamage, damage, counters, condition, cure, heal, discardEnergy, attachEnergy, moveEnergy, draw, drawUntil, search, lookTop, discardHand, shuffleHandIntoDeck, discardFromHand, mill, shuffleDeck, revealHand, switch, gust, returnToHand, shuffleIntoDeck, devolve, knockOut, discardTool, discardStadium, discardSelf, evolveFromDeck, mark, markPlayer, disableAttack, extraPrizeOnKO, endTurn, takePrizes, putOnBench, manual. - Targets (`of`): self, defending, active (side), attachedTo, attacker, chosen, choose (side, where, count, filter), each (side, where, filter). Abilities are `activated` (oncePerTurn, where, endsTurn, cond, effects), `statics` (hp, retreat, freeRetreat, takeLess, dealMore, preventDamage, noWeakness, noConditions, lock, benchSize …) or `triggers` (played, evolved, attached, damaged, knockedOut, checkup, turnEnd). - The full vocabulary is `packages/card-schema/src/pokemon.ts`; the server validates every card against it. ## Zones | Zone | Label | Kind | Visibility | Notes | |---|---|---|---|---| | `library` | Deck | pile | hidden | ordered | | `hand` | Hand | hand | owner | | | `active` | Active Pokémon | slots | public | 1 slot | | `bench` | Bench | slots | public | 5 slots | | `prizes` | Prize cards | pile | hidden | | | `discard` | Discard pile | pile | public | ordered | | `lostZone` | Lost zone | pile | public | | | `stadium` | Stadium | slots | public | shared · 1 slot | Hand zone: `hand` · library: `library` · main surface: `bench` · discard: `discard`. Seats: 2. ## Counters - `prizes` — Prizes remaining, starts at 6 (primary) - `damage` — Damage, starts at 0 ## Phases Draw → Main → Attack → End ## Deck rules A deck list is `{ "name", "engine": "pokemon", "format", "zones": { "": ["", …] } }`; copies are repeated ids. Formats: | Format | Zones (min–max, allowed types) | Max copies | Notes | |---|---|---|---| | Standard | Deck (`main`): 60–60 | 4 | prizes 6 · legality: standard | | Expanded | Deck (`main`): 60–60 | 4 | prizes 6 · legality: expanded | | Unlimited | Deck (`main`): 60–60 | 4 | prizes 6 · legality: unlimited | | Custom | Deck (`main`): 1+ | 99 | | ## Card adapter Types: Pokémon, Trainer, Energy · resource: Attack cost · stats: HP · colors: Grass, Fire, Water, Lightning, Psychic, Fighting, Darkness, Metal, Fairy, Dragon, Colorless.