Rules v0.8: rounds of alternating commands; sim updates

Rules (rules.md, new file):
- Rounds of 2 commands per player in snake order (A B B A, then B A A B).
  A command is one advance or one attack; each Avatar acts once per round.
- Flat 4 RAM captures, first row Lv 1, A2-C2 and C2-E2 lines cut,
  45-card decks, Code Zero at 3 Cores with Patient Zero at 1+ counters.

Simulator:
- Command rule (default on): commands.perPlayer, commands.leads,
  commands.snake; commands.on=false restores whole turns.
- Greedy bot values Avatar unlocks (unlockPoints) and picks one action
  per command.
- Prototype switches, off by default: Avatars in the deck (recruit.*),
  buying Avatars (buyAvatars.*), copy limits (copies.*), turn-1 draw and
  second-player draw options.
- cards.csv card-text revisions, with scripts and tests to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Forrest 2026-09-28 14:07:45 -04:00
parent 6382de19c9
commit a3eb6850ee
21 changed files with 1089 additions and 96 deletions

View file

@ -26,7 +26,8 @@ of how much a card helps.
## What's simulated
- **Rules:** everything in `rules.md`: setup, the turn steps, placement and advancing, attacks,
- **Rules:** everything in `rules.md`: setup, rounds of alternating commands (or whole turns, with
`--rule commands.on=false`), placement and advancing, attacks,
combat with tie rerolls, captures, levels and RAM, Avatar unlocks, Firewalls, Salvage, response
windows and chains, and the win condition.
- **Every card:** all 83 cards in `../decks/files-deck-1/cards.csv` have a script, including Avatar
@ -60,9 +61,10 @@ fixed hooks: Core totals, costs, combat start, defeat, capture, draws, installs,
## Bots
- **greedy** plans each turn: grabs open locations, attacks at 60%+ odds, guards threatened
locations, installs Hardware and Programs where they help, walls off undefended locations, and
keeps RAM for tricks. On the opponent's turn it answers after the dice are rolled with whichever
- **greedy** plans each command: takes the best single advance or attack (open locations first,
rushing the ones that unlock Avatars; attacks at 60%+ odds), guards threatened locations, installs
Hardware and Programs where they help, walls off undefended locations, and keeps RAM for tricks.
With whole turns it plans every Avatar's move at once. On the opponent's commands it answers after the dice are rolled with whichever
Execution or Ability most improves the combat, and tries to stop advances into its locations.
- **nocards** is greedy but only uses Core Hardware, like the first version of the sim.
- **bold / cautious / nowall / wall3** change one greedy setting each; **random** picks any legal