files-tcg/expansion-plan.md
2026-09-28 22:34:18 -04:00

328 lines
24 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Expansion Plan: Set 2 Design Brief
_Prepared 2026-09-28 against rules v0.8 and `decks/files-deck-1/cards.csv` (83 cards)._
This is the preparation document for the next batch of cards. It records what the current pool
looks like, what each of the four types is for, where the gaps are, what the simulator says about
balance, and the cost conventions new cards should follow. The last section proposes the shape of
the expansion and sketches directions per type. No cards are added here; that's the next step.
## 1. The Pool Today
| Kind | Count | Typed? | Notes |
| ------------- | ----- | ----------------------- | --------------------------------------------------------- |
| Avatars | 8 | yes, 2 per type | 4 per deck, so no mono-type Avatar lineup is possible yet |
| Programs | 28 | yes: V 7, B 8, G 7, P 6 | Patch is one or two short |
| Hardware | 16 | no | Template has no Type field |
| Executions | 18 | no | Template has no Type field |
| Servers | 13 | no | Deck needs 20, so at least 7 must be doubles |
| Turn Sequence | 1 | reference card | not in a deck |
Deck rules that shape the design: 4 Avatars, 20 Servers, 45 main-deck cards (Programs, Hardware,
Executions), at most 2 copies of any card. Salvage pays **full printed RAM**, so an expensive card
in hand is never dead: it is that much RAM.
### Avatar stat lines
Every Avatar sums Cores + Expansion Slots to 6, except Code Zero (3 + 4 = 7, after the v0.8 bump to
3 Cores). This can be modified as needed Only three lines exist: 2/4, 3/3 and 4/2. Ability costs run 3 to 5 but can be modified for different abilities.
| Type | Avatar | Cores/Slots | Ability (cost) | Role |
| ---- | ----------------- | ----------- | ------------------------------------------------------------ | ---------------- |
| V | Corrupt Driver | 3/3 | Driver Fault (4): disable enemy Hardware in combat | Hardware denial |
| V | Code Zero | 3/4 | Patient Zero (4): Infection on foes; 1+ Infection = −1 Core | Infection payoff |
| B | Carbon NanoBots | 2/4 | Replicate (5): make a copy | Board presence |
| B | Broken Bits | 4/2 | Bit Flip (4): reroll own dice | Dice control |
| G | Pixelated Picture | 3/3 | Low Resolution (3): attacker −1 Core | Defensive combat |
| G | Data Leaker | 3/3 | Exfiltrate (3): hand peek + targeted discard, draw on breach | Information |
| P | Beta Version 1.0 | 4/2 | Push Update (4): temp Hardware mid-combat, ignoring ports | Burst |
| P | Backup Machine | 3/3 | Restore Point (5): recover Hardware/Program from discard | Recovery |
## 2. What Each Type Is For
`cards.md` sets the scope rule: Program and Ability effects follow the type. That's the spine of
type-focused design.
**Virus (V): hurts the attacker and the enemy's stuff.** Infection counters, Hardware disabling,
RAM gained from enemy losses, spreading effects to adjacent locations. Current pieces: Recursive
Infection, Persistent Infection, Code Zero (placers and payoffs), Memory Parasite, Corrupt Driver
(Hardware denial), Resource Leech (RAM from kills), Worm Protocol and Replication Routine
(spreading and installing). Payload Injector is the odd one, a cost reducer.
**Bug (B): warps the combat.** Dice, Cores, hidden choices, loops, and suppression of Hardware.
Current pieces: Stack Overflow, Race Condition, Memory Leak, Stock Rice, Infinite Loop, Broken Bits,
Overflow Error, Undefined Behavior. **Bug counters** exist in the engine and are referenced by ECC
Memory and Error Correction, but no card places them. This is the biggest unused mechanic in the
game and belongs to this type.
**Glitch (G): information and adjacency.** Hand knowledge, discards, redirects, reach across
locations, taxing enemy Executions. Current pieces: Data Leaker, Packet Loss, Ghost Process, False
Positive, Fragmentation, Latency Spike, Desynchronization, Visual Artifact. Nothing yet touches
**Firewalls**, the game's only adjacency-changing mechanic; that is Glitch's open lane.
**Patch (P): protects and repairs your own side.** Disable instead of destroy, return to hand,
remove counters, cheaper installs, more slots. Current pieces: Hotfix, Error Correction, Garbage
Collection, Version Control, Rollback Routine, Compatibility Layer, Backup Machine, Beta Version.
No card protects **Hardware** even though Root Access already talks about protected Hardware.
### Type reach today
Only three cards read another card's type: Replication Routine (Virus Programs), Compatibility Layer
(Patch Programs) and ECC Memory (Bug counters). So a "Virus deck" today is 7 Virus Programs plus
neutral Hardware and Executions. Type focus is mostly flavor. The expansion should change that.
## 3. Gaps and Rough Edges
**Structural gaps**
1. **Avatars:** 2 per type makes mono-type lineups impossible. 4 per type is the minimum; 5 or 6
gives a real choice. Every new Avatar also needs art.
2. **Bug counters:** the mechanic is wired up but has no placers and no payoffs.
3. **Firewalls:** only Network Throttle interacts with them. Firewalls block card movement too
(Trace Route, Disconnect), so a "tunnel through a Firewall" effect would be new design space.
4. **Protected Hardware:** referenced by Root Access, provided by nothing.
5. **Offense from Programs:** Infinite Loop is the only Program that helps you attack. Programs are
almost all defensive, and since locations flip about 22 times a game (section 5), a defensive
Program is usually lost before it earns its cost.
6. **Servers:** 13 unique with 20 required. Reaching 20 unique Servers lets a player run an
all-distinct pile. Servers are untyped; a few type-themed Servers would be the cheapest way to
make a type deck feel different from the first capture.
7. **Hardware and Executions are untyped.** Two options: add a Type column value and a small type
chip to those two templates, or keep them typeless and give them type affinity through text ("If
a Virus Avatar you control is at the target Server..."). Text affinity needs no template work and
is the assumption below; a type chip can come later.
**Card text and numbers to fix while adding cards**
- RAM Expansion (+2 Cores, 5 RAM) strictly dominates Additional Core (+1 Core, 5 RAM). One of them
needs a new number. Suggest Additional Core at 4 RAM, or RAM Expansion at 7.
- Cloud Compute gives +4 Cores. In this dice system +2 Cores is a 90 to 99% edge, so +4 makes a
location nearly untouchable. It's a Server, so both players can draw it, but it swings games.
- Typos listed in `rules.md` Open Questions: Packet Accelerator "hen attacking", Null Pointer "it's
effect", Push Update "If there no ports", Memory Parasite "owners choosing". Network Interface
Upgrade text should say it adds a port.
- The CSV switched Servers to the "Server Front Alt" template. The sim's loader didn't know that
name and loaded zero Servers; it now accepts both names (`sim/src/cards.ts`).
- `cards.md` is out of date against the CSV (the rules already say so).
## 4. Cost Conventions
Derived from the current pool. Use these as the starting point; the sim can then refine them.
| What you buy | Going rate | Evidence |
| ----------------------------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------ |
| +1 Core, permanent, unconditional (Hardware) | 4 to 5 RAM | Additional Core 5; the RAM Expansion clash above |
| +1 Core, conditional (attacking only, defending only) | 4 RAM | Packet Accelerator |
| +2 Cores with a drawback | 6 RAM | Overclocked CPU |
| −1 Core to an enemy for one combat (Ability) | 3 RAM | Low Resolution |
| Reroll own dice (Ability) | 4 RAM | Bit Flip |
| Disable one enemy Hardware, one combat or one turn | 4 RAM ability, 5 RAM Program, 7 RAM Execution (destroy option) | Driver Fault, Memory Parasite, Sabotage |
| Disable one Program until next command | 5 RAM | Kill Process, Override |
| Draw 2 | 4 RAM | Ping Sweep |
| Copy a Program effect for one command | 7 RAM | Fork, Process Clone |
| Move an Avatar out of turn | 4 to 5 RAM | Disconnect, Trace Route |
| Counter-style one-shot (negate an Execution once per round) | 5 RAM | Null Pointer |
| Extra slot or extra Program capacity | 4 (Hardware), 6 (Program) | Network Interface Upgrade, Compatibility Layer |
Anchors: a capture pays 4 RAM, a Lv 1 Firewall costs 2, a Lv 3 costs 8. Programs sit at 4 to 8
(avg 5.5), Hardware 4 to 9 (avg 5.75), Executions 4 to 7 (avg 5.1). Type averages for Programs
are all within 5.4 to 5.7, so no type is currently priced as premium. Keep it that way.
The combat table in `rules.md` is the key balance constraint: a 1-Core edge is roughly 75 to 90%,
a 2-Core edge 90 to 99%. Any card that swings 2 Cores in one combat is close to "win this fight".
Price those like Executions at 6 to 7, or attach a real drawback, and avoid making them stack.
## 5. Simulator Balance Data
From 3,000 greedy-vs-greedy games with random legal decks (`node src/cli.ts -n 3000 --card-report`
in `sim/`). Win rate is for the player whose deck held the card, one standard error is about 1
point for Avatars and 0.8 for the rest. "Played" is how often the bot got the card into play, so a
low number can mean a weak card or a bot that doesn't know how to use it.
### How games actually go
| Per player, per game | Value |
| ---------------------------------------------------- | ----------------------------------- |
| Combats | 27.9 (both players) |
| Attack win rate | 81% (bots only attack at 60%+ odds) |
| Captures: unowned / undefended enemy / won in combat | 6.0 / 13.0 / 9.3 |
| Programs installed / lost | 7.5 / 5.2 |
| Hardware installed / lost in combat | 6.7 / 4.1 |
| Executions played | 2.2 |
| Ability uses / RAM on Abilities | 13.3 / 42 RAM |
| RAM from captures / from salvage | 142 / 32 |
| Firewalls placed / cleared | 10.7 / 9.1 |
Four things follow for the expansion:
1. **The game is a fight, not a land race.** With 28 combats a game and 41% of enemy locations
taken by combat, combat-warping cards (Bug) have plenty of targets. The Watch List worry about
few fights doesn't hold with the greedy bot.
2. **Programs are fragile.** Locations change hands about 22 times a game and 70% of installed
Programs are lost, mostly to capture. Programs as a group sit at 48 to 50% while Hardware sits at
49 to 53%. New Programs should be cheap, pay off when breached (Packet Loss), or come back
(Version Control). Expensive, slow Programs are the wrong shape for this game.
3. **Executions are barely played, so everything that answers them is dead.** Fragmentation, Null
Pointer, Latency Spike, Firewall Appliance, False Positive and Desynchronization fired 0.0 to 0.03
times per game they were in play. Either new Executions need to be cheaper and more decisive so
they get played, or the expansion should stop adding anti-Execution cards. Both, ideally.
4. **Abilities are the main interaction.** Thirteen uses a game and 42 RAM spent. Avatar Ability
design is the highest-leverage part of the batch.
### Cards that stand out
| Card | Win rate | Read |
| --------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| Broken Bits | 55.1% | Bit Flip at 4 RAM is the best card in the game. Rerolling losing dice on a 4-Core body wins fights. Consider 5 RAM or "reroll up to 2 dice". |
| RAM Expansion | 52.6% | +2 Cores for 5 RAM, fired 7.6 times a game. Confirms the price clash with Additional Core (50.6%). |
| Overclocked CPU | 52.2% | +2 Cores in combat; the Program-disable drawback rarely matters because bots have few Programs. |
| Execute: Packet Flood | 52.2% | The most-played Execution (59%) and the strongest. Pinning Avatars is worth 5 RAM. |
| Data Leaker | 52.0% | Exfiltrate used 8 times a game. Cheap targeted discard adds up. |
| Backup Machine | 45.2% | Restore Point at 5 RAM, used 6 times a game, loses. Recovery is worth less than tempo here. Candidate for 3 RAM, or add a Core. |
| Pixelated Picture | 48.0% | −1 Core to the attacker for 3 RAM only while defending. Defensive-only Abilities underperform. |
| Corrupt Driver | 48.3% | Driver Fault only bites when the enemy wears Hardware in that fight. |
| Hardware Sandbox | 48.0% | Protects a Program that will likely be lost to capture anyway. |
| Garbage Collection | 48.2% | Sacrificing Programs for RAM is worse than salvaging from hand. |
### Cards the bots can't use (no verdict yet)
Never or almost never played: Desynchronization, False Positive, Hotfix, Root Access (0%), Fork,
Remote Access, Process Clone (under 0.5%), Ghost Process, Beta Version 1.0 (under 1%), Payload
Injector, Kill Process, Override, Force Reboot (about 2%). Infinite Loop was installed in 45% of
games but never fired, and ECC Memory never fired because nothing places Bug counters. These need
either bot logic or a human playtest before they're judged.
### Type scorecard
Averaging the typed cards: Bug Avatars 52.4%, Glitch 50.0%, Virus 49.2%, Patch 48.1%. Programs by
type are all within 48.7 to 49.8%. Patch is the weakest type today, on both Avatars and Programs
(Garbage Collection, Version Control, Compatibility Layer all under 49%). The expansion should give
Patch tempo, not just recovery.
## 6. Proposed Shape of the Expansion
Target: a player can build a deck where type matters from Avatar slot 1 to the last Program, and
every type has a distinct way to win fights.
| Kind | Add | Result | Why |
| ---------- | ------------------------------ | ---------------------- | ---------------------------------------------------------- |
| Avatars | +8 (2 per type), +12 preferred | 4 to 5 per type | Mono-type lineups; each type gets a 2/4, 3/3 and 4/2 body |
| Programs | +17 (V 4, B 4, G 4, P 5) | V 11, B 12, G 11, P 11 | Evens the types; adds offense and Bug counters |
| Hardware | +8 (2 per type, text affinity) | 24 | Type payoffs on the Avatar side |
| Executions | +8 (2 per type, text affinity) | 26 | Type payoffs at instant speed |
| Servers | +7 | 20 | An all-unique pile becomes possible; 4 of them type-themed |
| **Total** | **+48** | **131** | |
### Directions per type
**Virus: the Infection engine, on offense too.**
Design goals: more ways to place Infection when _you_ attack (today it's defensive), payoffs that
scale with counters, and RAM drain. Keep the −1 Core payoff unique to Code Zero; new payoffs should
do other things (deny abilities, deny Hardware, punish movement).
Sketches:
- Avatar, 4/2, _Ransomware_: ability pays you RAM equal to the target's Hardware count, or the
enemy loses one Hardware, their choice.
- Avatar, 2/4, _Botnet_: when an enemy Avatar with Infection is defeated anywhere, gain 2 RAM.
- Program (V), _Zero-Day_: when your Avatar attacks from this Server, place an Infection counter on
the defender before the roll.
- Program (V), _Keylogger_: whenever an enemy Avatar with an Infection counter plays an Execution,
look at their hand.
- Execution (affinity), _Execute: Quarantine_: target Avatar with Infection can't advance or attack
until its controller's next command; if a Virus Avatar you control is at the target Server, it
also loses 1 Core this combat.
- Hardware (affinity), _Payload Module_: when the wearer wins a combat, place an Infection counter
on every enemy Avatar adjacent to it.
**Bug: dice, not Cores.**
Design goals: give Bug counters a payoff that is _not_ Core loss, so they feel different from
Infection. Suggested rule to add to `rules.md`: an Avatar with Bug counters rerolls nothing, but for
each Bug counter one of its dice showing 6 counts as 1 (or: its highest die is removed at 3+). Bug
cards then place counters and manipulate dice, and ECC Memory finally has a job.
Sketches:
- Avatar, 3/3, _Fuzzer_: ability places a Bug counter on each enemy Avatar in combat with it.
- Avatar, 4/2, _Off By One_: ability changes one of your dice by ±1 after the roll.
- Avatar, 2/4, _Heisenbug_: ability swaps which side is "attacker" for Program effects this combat.
- Program (B), _Segmentation Fault_: when an enemy Avatar with 2+ Bug counters attacks this Server,
it rolls one die fewer.
- Program (B), _Unhandled Exception_: the first time each round a tie is rerolled at this Server,
place a Bug counter on the attacker and gain 1 RAM.
- Execution (affinity), _Execute: Fuzz_: after the roll, reroll all dice showing 1 on one side; if
a Bug Avatar you control is in the combat, choose the side.
- Hardware (affinity), _Watchdog Timer_: the wearer's first combat each round, a natural 1 counts
as 6 (once).
**Glitch: reach and Firewalls.**
Design goals: own the adjacency rules. Move through or ignore Firewalls, act at range, see hidden
information (face-down Avatars, Server piles), and discount your own Firewalls.
Sketches:
- Avatar, 3/3, _Screen Tear_: ability lets it attack a location two lines away this command,
through no more than one Firewall.
- Avatar, 2/4, _Phantom Cursor_: ability looks at the top 2 Servers of the enemy pile and puts one
on the bottom.
- Avatar, 4/2, _Dead Pixel_: while it defends, the location counts as adjacent to nothing for enemy
Executions (no Ghost Process reach in).
- Program (G), _Tunnel_: your Avatars may advance or attack along one Firewalled line touching
this Server, ignoring the Firewall.
- Program (G), _Mirror Site_: this Server counts as adjacent to one non-adjacent location you
choose on install, for your Avatars only.
- Execution (affinity), _Execute: Port Scan_: look at both face-down Avatars of your opponent's
choice; draw a card if a Glitch Avatar you control is at the target Server.
- Hardware (affinity), _Spoofed MAC_: the wearer is treated as being on an adjacent location you
control when enemy Programs check "attacking this Server".
**Patch: protection, uptime and economy.**
Design goals: protect Hardware, keep Avatars from losing Hardware on defeat, refunds, and make
long games favor the Patch player. Patch should also get the only reliable "return a defeated
Avatar to the board this round" effect.
Sketches:
- Avatar, 3/3, _Service Pack_: ability re-enables all your disabled Hardware and Programs at this
Server.
- Avatar, 4/2, _Long Term Support_: the first time it is defeated each game, keep its Hardware
(like Redundant Power Supply, built in).
- Avatar, 2/4, _Checksum_: ability names a card type; the next enemy Execution of that... (keep
simple: the next enemy Execution targeting this Server costs 3 more).
- Program (P), _Uptime Monitor_: at the start of your first command each round, gain 1 RAM for
each Patch Program you control (cap 3).
- Program (P), _Warm Standby_: when your defending Avatar here is defeated, you may place it back
on a location you control this command.
- Execution (affinity), _Execute: Snapshot_: until end of command, one Hardware on your Avatar at
the target Server is protected (Root Access's missing partner).
- Hardware (affinity), _Surge Protector_: the first Core penalty on the wearer each round is
ignored; if a Patch Avatar wears it, the second is too.
**Servers (untyped but themed), +7.**
Four type-themed and three neutral. Themed ones reward a type without requiring it:
- _Quarantine Host_: Virus Programs installed here cost 2 less.
- _Test Bench_: Bug Programs here also place a Bug counter on the attacker at combat start.
- _Proxy Node_: Executions you play targeting this Server may target an adjacent one instead.
- _Stable Release_: Patch Programs here can't be disabled.
- Neutral: _Cache Server_ (+2 RAM when you recapture), _Honeypot_ (attacker −1 Core for the first
combat here), _Load Balancer_ (your Avatar here may swap with another of yours once per round).
### Guardrails for the batch
- Every Avatar stays at Cores + Slots = 6-9, unless the outlier is the point of the card.
- Programs cost 4 to 6 and do something when installed, when breached, or when they leave play.
No 7 or 8 RAM Programs unless they return to hand.
- New Executions cost 3 to 5 and change a fight or a capture directly. No more cards that only
answer Executions until Executions are played more than twice a game.
- New Hardware favors triggers and utility over flat Cores. The pool already has four Core sticks.
- No new card gives more than +2 Cores in a single combat without a real drawback.
- Each type gets at least one card that places its counter (Infection or Bug) on **offense**.
- Every new Program should be answerable by an existing Execution (Kill Process, Override,
Rollback), and every new Hardware by Sabotage or Driver Fault.
- Text uses the v0.8 vocabulary: _command_, _round_, _breach_, _this Server_, _at this Server_.
- New cards need scripts in `sim/src/cards/` before the card report can judge them; until then
they show as "no script yet" and the bots never play them.
## 7. Open Decisions for the Owner
1. Type chip on Hardware and Execution templates, or text affinity only? Text affinity only
2. Bug counter rule: "6s count as 1" per counter, or "lose highest die at 3+"? lose highest die
3. Avatar count: +8 or +12? Art is the constraint. +12
4. Fix RAM Expansion vs Additional Core by price, or by changing one card's effect? price