Resume Richese auctions after Distrans Semuta reaction
Verify and publish checkpoint container / container (push) Successful in 11m24s

This commit is contained in:
Quintine committed 2026-10-29 10:38:59 +11:00
1 parent ccc4c7bb40
commit f8078ed5e2
9 files changed
+245 -56

No files matched your search

+8 -6
View File
@@ -63,16 +63,17 @@ for (const advanced of [false, true]) for (const method of ['onceAround', 'silen
assert.deepEqual(distransPrebidInventory(game), f.originalInventory);
});
for (const first of method === 'silent' ? [0, 1] : [null, 1]) {
void test(`${prefix} first ${first === null ? 'pass' : first === 0 ? 'sealed zero' : 'bid'} keeps Distrans guarded with the Semuta preview`, () => {
void test(`${prefix} first ${first === null ? 'pass' : first === 0 ? 'sealed zero' : 'bid'} allows Distrans without changing the original special lot`, () => {
const f = createDistransRichesePrebidFixture({ advanced, method });
const start = firstSubmission(f.game, first);
const game = actDistransPrebid(reload(f.game), start.actor, start.action);
assert.ok(game.richeseAuction?.acted.includes(start.actor));
assert.match(viewGame(game, f.holder).distrans!.blocked!, /Semuta preview/);
rejected(game, f.holder, f.action);
assert.ok(player(game, f.holder).hand.some(c => c.id === f.card));
assert.ok(player(game, f.holder).hand.some(c => c.id === f.give));
assert.deepEqual(distransPrebidInventory(game), f.originalInventory);
assert.equal(viewGame(game, f.holder).distrans!.blocked, null);
const after = actDistransPrebid(game, f.holder, f.action);
assert.deepEqual(after.richeseAuction, game.richeseAuction);
assert.deepEqual(after.richeseFunding, game.richeseFunding);
assert.ok(player(after, f.recipient).hand.some(c => c.id === f.give));
assert.deepEqual(distransPrebidInventory(after), f.originalInventory);
});
}
void test(`${prefix} rejects a full recipient before spending either physical card`, () => {
@@ -118,6 +119,7 @@ for (const advanced of [false, true]) for (const method of ['onceAround', 'silen
const choice = viewGame(game, f.holder).distrans!.choices.find(c => c.recipient === recipientId)!;
assert.ok(choice.cards.some(c => c.id === f.give));
game = actDistransPrebid(game, f.holder, action);
game = advanceDistransPrebid(game, distransPrebidClean);
assert.equal(player(game, recipientId).hand.length, handLimit(recipient));
assert.equal(player(game, f.holder).hand.length, handLimit(donor) - 2);
assert.deepEqual(distransPrebidInventory(game), f.originalInventory);