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

+6
View File
@@ -25,6 +25,12 @@ export function PhaseAnyBidGuideButton(props: Props) {
typeof action.phaseAnyBidPromiseEvent !== 'string' ||
!current.phaseAnyBidPromises.some(promise => promise.event === action.phaseAnyBidPromiseEvent &&
promise.player === actor && promise.turn === turn && !promise.fulfilled && !promise.released)) return false;
if (action.richeseBidPromiseId !== undefined) {
if (action.type !== 'richeseBid' || typeof action.richeseBidPromiseId !== 'string' || !special ||
![...current.richeseBidPromises, ...current.mixedRicheseBidPromises].some(promise =>
promise.id === action.richeseBidPromiseId && promise.player === actor && promise.turn === turn &&
promise.event === special.event && !promise.fulfilled && !promise.released)) return false;
}
if (action.type === 'bid' || action.type === 'passBid')
return !!ordinary && current.auction === ordinary && ordinary.active === actor &&
JSON.stringify([ordinary.bid, ordinary.bidder, ordinary.active, ordinary.remaining]) === ordinarySignature &&