Rev 9: REDIRECTION connects the exits you choose
Playtesting read the card right and the engine had it wrong. "Placing the A tokens on one set of exits & the B tokens on the other" means the two exits you mark BECOME a pair — and their former partners pair with each other — not that the two exits trade destinations. Under rev 9, click the exit and then the exit you want it to connect TO (the hint now says so); already-connected exits are refused. Earlier games keep the swap their logs were validated against. Test pins the full four-way rewiring. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
1aafb9e837
commit
ca16faac73
@@ -769,3 +769,28 @@ describe("rules revision 8", () => {
|
||||
if (!r.ok) expect(r.error).toMatch(/warp shimmers/);
|
||||
});
|
||||
});
|
||||
|
||||
describe("redirection (rules rev 9)", () => {
|
||||
it("the two chosen exits connect; their old partners pair with each other", () => {
|
||||
let { state } = createGame({ playerIds: ["alice", "bob"], seed: 42, sets: ["basic"], deckRev: 9 });
|
||||
state = toRound2(state);
|
||||
const me = activePlayer(state);
|
||||
// Pick two exits that are NOT already partners.
|
||||
const warps = state.board.warps;
|
||||
const wa = warps[0]!;
|
||||
const wb = warps.find((w) => cellKey(w.from.cell) !== cellKey(wa.from.cell) &&
|
||||
cellKey(w.from.cell) !== cellKey(wa.to.cell))!;
|
||||
const paCell = { ...wa.to.cell };
|
||||
const pbCell = { ...wb.to.cell };
|
||||
const rd = giveCard(state, me.id, "redirection", "RD", 0);
|
||||
state = must(state, me.id, {
|
||||
type: "cast", instanceId: rd.instanceId,
|
||||
target: { kind: "cell", cell: wb.from.cell }, params: { cell: wa.from.cell },
|
||||
});
|
||||
const after = (from: Cell) => state.board.warps.find((w) => cellKey(w.from.cell) === cellKey(from))!;
|
||||
expect(cellKey(after(wa.from.cell).to.cell)).toBe(cellKey(wb.from.cell));
|
||||
expect(cellKey(after(wb.from.cell).to.cell)).toBe(cellKey(wa.from.cell));
|
||||
expect(cellKey(after(paCell).to.cell)).toBe(cellKey(pbCell));
|
||||
expect(cellKey(after(pbCell).to.cell)).toBe(cellKey(paCell));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user