From acd2c49652217934c5ab73495db7ff05027dd397 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 23:04:37 -0500 Subject: [PATCH] [sim-balance] SIM_SECOND_EXTRA: sim-only experiment for second-seat compensation Co-Authored-By: Claude Opus 5.5 --- scripts/sim/duel-core-sim.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/sim/duel-core-sim.ts b/scripts/sim/duel-core-sim.ts index 346a3ae..8645184 100644 --- a/scripts/sim/duel-core-sim.ts +++ b/scripts/sim/duel-core-sim.ts @@ -43,6 +43,19 @@ export async function makeDuelSim(sampleFile: string, overrides: Record 0) { + const create = engine.createMatch; + engine.createMatch = (r, d, seed) => { + const s = create(r, d, seed); + const second = (1 - s.firstSeat) as 0 | 1; + const p = s.players[second]; + p.hand.push(...p.library.splice(0, extra)); + return s; + }; + } return { name: 'duel', engine, lens: engine.lens, pool, deckPayload: cs => cs.map(c => c.card),