# Drawstep — Gundam Card Game: table model (ruleset) Generated from Drawstep's game registry (engine id `gundam`). Wiki page: https://drawstep.xyz/wiki/gundam · this document: https://drawstep.xyz/wiki/drawstep-gundam-ai-pack.md. Each player deploys Units piloted by famous pilots, paying with resources that grow by one a turn, and attacks through the opponent's six shields. Assisted tables set up shields, the EX Base and the second player's EX Resource, run the Start, Draw and Resource phases, check Lv and pay costs with resources; battles, pairing pilots, Bursts and effects are resolved by the players. ## How a table plays Gundam Tables offer **assisted** play — the free table plus Gundam's ruleset — and **free** play (no rules at all). Card text is never executed: it is shown on the card and resolved by the players. The ruleset is plain data in `packages/game-registry/src/games/gundam.ts`, run by `RulesetTable` (`packages/engine/src/ruleset.ts`). Turn: Start → Draw → Resource → Main (main) → End. Only the player whose turn it is moves it on (Next phase / End turn); automatic phases pass by themselves. What the table does by itself: - Deals 5 cards and one mulligan each; then 6 shields face down, the EX Base token, and an EX Resource for the player going second. - Start: every card becomes active. Draw: 1 card (the player going first skips it on turn 1). Resource: 1 card from the resource deck. - Deploying a Unit or Base from the hand checks its Lv against your resources and rests that many active resources. - Holds the end of the turn until the hand is down to 10; the Shields counter follows the shield area; drawing from an empty deck loses. What the players do by hand: - Attacking, blocking and battle damage; destroying shields and their [Burst] effects - Pairing a Pilot with a Unit (attach it) - Commands ([Main] / [Action]) — rest resources by hand, then move the Command to the trash - Removing a used EX Resource How a game is won: - A player with no shields takes battle damage — the losing player concedes. - A player has to draw from an empty deck (the table checks). The publisher's rules: https://www.gundam-gcg.com/en/rules/ · official cards from gcg-api (from the official card list) (https://github.com/yzRobo/gcg-api) · card pictures: none yet: every source of them shows Bandai's renders stamped "SAMPLE", so cards are drawn as frames. ## Card format A Gundam card is a card definition with `"game": "gundam"` and a `tcg` payload — the printed data the ruleset reads (its category, its cost, the numbers on it). Cards are plain data: put the printed text in `text`; do **not** invent ability JSON. ```json { "id": "my-card", "name": "My Card", "game": "gundam", "source": "custom", "types": [ "Unit" ], "subtypes": [ "Trait" ], "colors": [ "Blue" ], "text": "Printed rules text.", "tcg": { "category": "Unit", "cost": 2, "stats": { "level": 1, "ap": 1, "hp": 1 }, "attributes": [ "Blue" ], "traits": [ "Trait" ], "extra": { "link": "…", "zone": "…" } }, "image": { "normal": "https://… (optional full-card image)" } } ``` Fields (the Card Studio's form): `attributes` (Colour: Blue / Green / Red / White / Purple), `stats.level` (Lv), `cost` (Cost), `stats.ap` (AP; Unit, Pilot, Base only), `stats.hp` (HP; Unit, Pilot, Base only), `traits` (Traits), `extra.link` (Link; Unit only), `extra.zone` (Zone; Unit, Base only), `text` (Effect). Categories: Unit, Pilot, Command, Base. ## Zones | Zone | Label | Kind | Visibility | Notes | |---|---|---|---|---| | `library` | Deck | pile | hidden | ordered | | `hand` | Hand | hand | owner | | | `units` | Battle area | slots | public | 6 slots | | `base` | Base | slots | public | 1 slot | | `shields` | Shields | pile | hidden | ordered | | `resources` | Resource area | row | public | | | `resourceDeck` | Resource deck | pile | hidden | | | `trash` | Trash | pile | public | ordered | | `removal` | Removed | pile | public | | Hand zone: `hand` · library: `library` · main surface: `units` · discard: `trash`. Seats: 2. ## Counters - `shields` — Shields, starts at 0 (primary) ## Phases Start → Draw → Resource → Main → End ## Deck rules A deck list is `{ "name", "engine": "gundam", "format", "zones": { "": ["", …] } }`; copies are repeated ids. Formats: | Format | Zones (min–max, allowed types) | Max copies | Notes | |---|---|---|---| | Standard | Deck (`main`): 50–50; Resource deck (`resource`): 0–10, Resource | 4 | legality: standard | | Custom | Deck (`main`): 1+; Resource deck (`resource`): 0+ | 99 | | ## Card adapter Types: Unit, Pilot, Command, Base, Resource · resource: Cost · stats: AP / HP · colors: Blue, Green, Red, White, Purple.