Connect Richese final-cache and provisional full-hand acquisition

This commit is contained in:
Quintine committed 2026-10-08 20:29:45 +11:00
1 parent 451ecc950c
commit 66e061ccca
10 files changed
+83 -45

No files matched your search

+2 -10
View File
@@ -279,16 +279,8 @@ void test('special purchase cannot spend sealed bid funds or take the already of
rejected(g, { ...action, acquire: offered }, /offered for auction/);
});
void test('full-hand, final-cache and noncanonical selections remain explicit atomic unsupported or invalid cases', () => {
let g = fixture();
const action = command(g);
g.players[0].hand.push(...g.deck.splice(0, 3));
rejected(g, action, /full hand.*ruling/);
g = fixture();
const last = command(g);
g.richeseCache = g.richeseCache!.filter((c) => c.id === last.acquire);
rejected(g, last, /final cache.*implementation/);
g = fixture();
void test('noncanonical cache selections remain invalid before any purchase cost', () => {
const g = fixture();
const fake = command(g);
g.richeseCache!.find((c) => c.id === fake.acquire)!.name =
'Invented replacement';