Compose phase-wide and Richese bid commitments
Verify and publish checkpoint container / container (push) Successful in 11m13s
Verify and publish checkpoint container / container (push) Successful in 11m13s
This commit is contained in:
1 parent
38f1684e03
commit
9e020ccd64
12 files changed
+664
-13
No files matched your search
@@ -21,7 +21,12 @@ export function MixedRicheseBidPromises(props: { game: GameView; busy: boolean;
|
||||
!guide || game.richeseBidPromiseGuide !== guide || !action || guide.action !== action ||
|
||||
JSON.stringify(action) !== signature || action.type !== 'richeseBid' || action.event !== auction.event ||
|
||||
typeof action.richeseBidPromiseId !== 'string') return false;
|
||||
return own.some(promise => promise.id === action.richeseBidPromiseId && promise.turn === game.turn &&
|
||||
if (action.phaseAnyBidPromiseEvent !== undefined &&
|
||||
(typeof action.phaseAnyBidPromiseEvent !== 'string' || action.phaseAnyBidLotEvent !== auction.event ||
|
||||
!game.phaseAnyBidPromises.some(promise => promise.event === action.phaseAnyBidPromiseEvent &&
|
||||
promise.player === game.me && promise.turn === game.turn && !promise.fulfilled && !promise.released))) return false;
|
||||
return game.mixedRicheseBidPromises.some(promise => promise.player === game.me &&
|
||||
promise.id === action.richeseBidPromiseId && promise.turn === game.turn &&
|
||||
promise.event === auction.event && !promise.fulfilled && !promise.released);
|
||||
};
|
||||
const canGuide = () => !props.busy && isCurrentGuide();
|
||||
|
||||
Reference in new issue
Block a user