Compose phase-wide and ordinary bid commitments
Verify and publish checkpoint container / container (push) Successful in 10m37s

This commit is contained in:
Quintine committed 2026-11-16 19:42:53 +11:00
1 parent 9e020ccd64
commit 1ff520a9fc
11 files changed
+591 -15

No files matched your search

+8
View File
@@ -31,6 +31,14 @@ export function PhaseAnyBidGuideButton(props: Props) {
promise.id === action.richeseBidPromiseId && promise.player === actor && promise.turn === turn &&
promise.event === special.event && !promise.fulfilled && !promise.released)) return false;
}
if (action.bidPromiseEvent !== undefined) {
if ((action.type !== 'bid' && action.type !== 'passBid') || typeof action.bidPromiseEvent !== 'string' ||
typeof action.phaseAnyBidLot !== 'number' || current.bidPromiseLot?.turn !== turn ||
current.bidPromiseLot.lot !== action.phaseAnyBidLot ||
![...current.bidPromises, ...current.mixedBidPromises].some(promise =>
promise.event === action.bidPromiseEvent && promise.player === actor && promise.turn === turn &&
promise.lot === action.phaseAnyBidLot && !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 &&