Support Advanced early cache bid promises
Verify and publish checkpoint container / container (push) Successful in 11m48s

This commit is contained in:
Quintine committed 2026-11-16 20:34:43 +11:00
1 parent 1a65e69932
commit 225b2174ad
14 files changed
+1071 -22

No files matched your search

+3 -3
View File
@@ -91,7 +91,7 @@ import { parseBidClaim, bidClaimText, bidPromiseModeSupported, currentBidPromise
import { parsePhaseBidClaim, phaseBidClaimText, phaseBidPromiseModeSupported, type PhaseBidClaim } from './turn-bid-promises';
import { parsePhaseAnyBidClaim, phaseAnyBidClaimText, phaseAnyBidPromiseModeSupported, type PhaseAnyBidClaim } from './phase-any-bid-promises';
import { parseRicheseBidClaim, richeseBidClaimText, type RicheseBidClaim } from './richese-bid-promises';
import { parseEarlyRicheseBidClaim, earlyRicheseBidClaimText, type EarlyRicheseBidClaim } from './early-richese-bid';
import { earlyRicheseBidModeSupported, parseEarlyRicheseBidClaim, earlyRicheseBidClaimText, type EarlyRicheseBidClaim } from './early-richese-bid';
export type TruthFact =
| KnowledgeFact
@@ -448,11 +448,11 @@ function parseQuestion(g: Game, asker: string, value: unknown): TruthQuestion {
check(Object.keys(v).sort().join(',') === 'kind,minimum,target,turn',
'Supply the current turn, cache bid minimum and respondent.');
const claim = parseEarlyRicheseBidClaim(v);
check(bidPromiseModeSupported({ ...g, semutaPreview: undefined }) && !g.kullPreview && !g.advanced &&
check(earlyRicheseBidModeSupported(g) &&
g.status === 'playing' && g.phase >= 0 && g.phase <= 2 && claim.turn === g.turn &&
g.players.some(player => player.faction === 'richese') && (g.richeseCache?.length ?? 0) > 0 &&
!g.response && !g.decision && !g.phaseOpening && !g.pendingKarama && !g.pendingTreacheryDiscard,
'Choose a quiet Basic turn before the first Richese cache auction.');
'Choose a supported quiet turn before the first Richese cache auction.');
return { kind: 'earlyRicheseBid', target: v.target, ...claim };
}
if (v.kind === 'richeseBid') {