# Drawstep — One Piece Card Game: table model (ruleset) Generated from Drawstep's game registry (engine id `onepiece`). Wiki page: https://drawstep.xyz/wiki/onepiece · this document: https://drawstep.xyz/wiki/drawstep-onepiece-ai-pack.md. Each player leads with a Leader card, a 50-card deck of their Leader's colours and a DON!! deck of 10. DON!! cards pay costs and give power; Life cards guard the Leader. Assisted tables walk the turn (Refresh, Draw, DON!!, Main, End), pay costs with DON!!, keep the Life count and set up the game; attacks, blockers, counters and effects are resolved by the players. ## How a table plays One Piece Tables offer **assisted** play — the free table plus One Piece'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/onepiece.ts`, run by `RulesetTable` (`packages/engine/src/ruleset.ts`). Turn: Refresh → Draw → DON!! → 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; one mulligan each; then Life cards equal to the Leader's Life go face down from the top of the deck. - Refresh: DON!! given to the Leader and Characters return to the cost area, then every card becomes active. - Draw: 1 card (the player going first skips it on turn 1). DON!!: 2 DON!! from the DON!! deck to the cost area (1 on the first turn). - Playing a Character or Stage from the hand rests that many active DON!! (refused in other phases, on the opponent's turn, or without enough DON!!). - The Life counter follows the Life area; a player whose deck is empty loses. What the players do by hand: - Attacking, blocking and Counter steps; comparing power - Taking a Life card into the hand when the Leader is hit, and [Trigger] effects - Giving DON!! to the Leader or a Character (attach it) - Events (rest DON!! by hand, then move the Event to the trash) How a game is won: - The Leader is dealt damage with no Life cards left — the losing player concedes. - A player's deck is empty (the table checks). The publisher's rules: https://en.onepiece-cardgame.com/rules/ · official cards from apitcg one-piece-tcg-data (from the official card list) (https://github.com/apitcg/one-piece-tcg-data) · card pictures: DotGG's clean renders (the official card list stamps "SAMPLE" on its own), hosted by this server. ## Card format A One Piece card is a card definition with `"game": "onepiece"` 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": "onepiece", "source": "custom", "types": [ "Leader" ], "subtypes": [ "Trait" ], "colors": [ "Red" ], "text": "Printed rules text.", "tcg": { "category": "Leader", "cost": 2, "stats": { "life": 1, "power": 1, "counter": 1 }, "attributes": [ "Red" ], "traits": [ "Trait" ], "extra": { "attribute": "…", "trigger": "…" } }, "image": { "normal": "https://… (optional full-card image)" } } ``` Fields (the Card Studio's form): `attributes` (Colour: Red / Green / Blue / Purple / Black / Yellow), `cost` (Cost; Character, Event, Stage only), `stats.life` (Life; Leader only), `stats.power` (Power; Leader, Character only), `stats.counter` (Counter; Character only), `extra.attribute` (Attribute: Slash / Strike / Ranged / Special / Wisdom; Leader, Character only), `traits` (Types), `keywords` (Keywords: Rush / Blocker / Double Attack / Banish / Trigger), `text` (Effect), `extra.trigger` (Trigger). Categories: Leader, Character, Event, Stage. ## Zones | Zone | Label | Kind | Visibility | Notes | |---|---|---|---|---| | `library` | Deck | pile | hidden | ordered | | `hand` | Hand | hand | owner | | | `leader` | Leader | slots | public | 1 slot | | `characters` | Character area | slots | public | 5 slots | | `stage` | Stage | slots | public | 1 slot | | `cost` | Cost area | row | public | | | `donDeck` | DON!! deck | pile | public | | | `life` | Life | pile | hidden | ordered | | `trash` | Trash | pile | public | ordered | Hand zone: `hand` · library: `library` · main surface: `characters` · discard: `trash`. Seats: 2. ## Counters - `life` — Life, starts at 0 (primary) ## Phases Refresh → Draw → DON!! → Main → End ## Deck rules A deck list is `{ "name", "engine": "onepiece", "format", "zones": { "": ["", …] } }`; copies are repeated ids. Formats: | Format | Zones (min–max, allowed types) | Max copies | Notes | |---|---|---|---| | Standard | Leader (`leader`): 1–1, Leader; Deck (`main`): 50–50; DON!! deck (`don`): 0–10 | 4 | legality: standard | | Custom | Leader (`leader`): 0–1, Leader; Deck (`main`): 1+; DON!! deck (`don`): 0+ | 99 | | ## Card adapter Types: Leader, Character, Event, Stage, DON!! · resource: Cost · stats: Power · colors: Red, Green, Blue, Purple, Black, Yellow.