Compose phase-wide and Richese bid commitments
Verify and publish checkpoint container / container (push) Successful in 11m13s

This commit is contained in:
Quintine committed 2026-11-16 19:31:35 +11:00
1 parent 38f1684e03
commit 9e020ccd64
12 files changed
+664 -13

No files matched your search

+8 -1
View File
@@ -15,7 +15,9 @@ export type RicheseBidPromiseReceipt = {
export type RicheseBidPromisePanelProps = {
promises: RicheseBidPromiseReceipt[];
guide: { action: Action } | null;
game: { turn: number; richeseAuction: { event: string; method?: 'onceAround' | 'silent' | 'normal' } | null };
game: { turn: number; me?: string;
phaseAnyBidPromises?: {event: string; player: string; turn: number; fulfilled?: boolean; released?: boolean}[];
richeseAuction: { event: string; method?: 'onceAround' | 'silent' | 'normal' } | null };
act: (action: Action) => void;
busy: boolean;
};
@@ -32,6 +34,11 @@ export function RicheseBidPromiseGuide(props: RicheseBidPromisePanelProps) {
game.turn === turn && !!auction && game.richeseAuction === auction &&
typeof auctionEvent === 'string' && auction.event === auctionEvent &&
typeof id === 'string' && action.type === 'richeseBid' &&
(action.phaseAnyBidPromiseEvent === undefined ||
typeof action.phaseAnyBidPromiseEvent === 'string' && action.phaseAnyBidLotEvent === auctionEvent &&
typeof game.me === 'string' && !!game.phaseAnyBidPromises?.some(promise =>
promise.event === action.phaseAnyBidPromiseEvent && promise.player === game.me && promise.turn === turn &&
!promise.fulfilled && !promise.released)) &&
props.promises.some(promise => promise.id === id && promise.turn === turn &&
promise.event === auctionEvent && !promise.fulfilled && !promise.released);
const canAct = () => !props.busy && isCurrent();