Allow Distrans between completed auction bids
Verify and publish checkpoint container / container (push) Successful in 10m44s
Verify and publish checkpoint container / container (push) Successful in 10m44s
This commit is contained in:
1 parent
ab7a947833
commit
ccc4c7bb40
16 files changed
+250
-80
No files matched your search
@@ -108,21 +108,22 @@ for (const advanced of [false, true]) {
|
||||
});
|
||||
|
||||
for (const opening of ['bid', 'passBid'] as const) {
|
||||
void test(`${mode} first real ${opening} closes Distrans until the next untouched ordinary lot`, () => {
|
||||
void test(`${mode} first real ${opening} leaves the completed lot available for Distrans`, () => {
|
||||
const f = createDistransPrebidFixture({ advanced });
|
||||
const actor = f.game.auction!.active;
|
||||
let game = actDistransPrebid(f.game, actor,
|
||||
opening === 'bid' ? { type: 'bid', amount: 1, allyPayment: 0 } : { type: 'passBid' });
|
||||
assert.equal(distransPrebidUntouched(game), false);
|
||||
assert.ok(viewGame(game, f.holder).distrans!.blocked);
|
||||
rejected(game, f.holder, f.action);
|
||||
assert.equal(viewGame(game, f.holder).distrans!.blocked, null);
|
||||
const offered = actDistransPrebid(game, f.holder, f.action);
|
||||
assert.deepEqual(offered.auction, game.auction);
|
||||
let bidder = actor;
|
||||
if (opening === 'passBid') {
|
||||
assert.equal(game.auction!.bid, 0);
|
||||
assert.deepEqual(game.auction!.passed, [actor]);
|
||||
bidder = game.auction!.active;
|
||||
game = actDistransPrebid(game, bidder, { type: 'bid', amount: 1, allyPayment: 0 });
|
||||
rejected(game, f.holder, f.action);
|
||||
assert.equal(viewGame(game, f.holder).distrans!.blocked, null);
|
||||
}
|
||||
game = completeBid(game, bidder);
|
||||
assert.equal(game.auction!.index, 1);
|
||||
|
||||
Reference in new issue
Block a user