Compose phase-wide and ordinary bid commitments
Verify and publish checkpoint container / container (push) Successful in 10m37s
Verify and publish checkpoint container / container (push) Successful in 10m37s
This commit is contained in:
1 parent
9e020ccd64
commit
1ff520a9fc
11 files changed
+591
-15
No files matched your search
@@ -24,6 +24,10 @@ export function BidPromiseGuideButton(props: BidPromiseProps) {
|
||||
promise.turn === turn && promise.lot === number && !promise.fulfilled && !promise.released) ||
|
||||
current.mixedBidPromises.some(promise => promise.event === event && promise.player === actor &&
|
||||
promise.turn === turn && promise.lot === number && !promise.fulfilled && !promise.released)) &&
|
||||
(action.phaseAnyBidPromiseEvent === undefined ||
|
||||
(typeof action.phaseAnyBidPromiseEvent === 'string' && action.phaseAnyBidLot === number &&
|
||||
current.phaseAnyBidPromises.some(promise => promise.event === action.phaseAnyBidPromiseEvent &&
|
||||
promise.player === actor && promise.turn === turn && !promise.fulfilled && !promise.released))) &&
|
||||
!!me && !me.autopilot && !current.truthtrance && !current.response && !current.decision &&
|
||||
!current.phaseOpening && !current.automaticContinuationPending && !current.roomControl?.paused && !current.roomControl?.closed;
|
||||
};
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
Reference in new issue
Block a user