feat: allow revising pending sealed auction bids

This commit is contained in:
coyotte508 2026-10-05 01:36:02 +02:00
commit 4578009179
26 changed files with 170 additions and 29 deletions

View file

@ -1,4 +1,5 @@
export { availableMoves, AvailableMoves } from './src/available-moves';
export * from './src/choice-revisions';
export { currentPlayers, ended, move, moveAI, setup, stripSecret } from './src/engine';
export { Phase } from './src/gamestate';
export type { GameState, Player, PointCard } from './src/gamestate';

View file

@ -1,6 +1,6 @@
{
"name": "container-engine",
"version": "2.1.4",
"version": "2.1.5",
"description": "An engine for Container",
"main": "dist/index.js",
"types": "index.ts",

View file

@ -0,0 +1,25 @@
import type { GameState } from './gamestate';
import { Phase } from './gamestate';
import { Move, MoveName } from './move';
export function bidRevision(G: GameState, seat: number): string | undefined {
const p = G.players[seat];
if (
!p ||
p.isDropped ||
G.phase !== Phase.Bid ||
G.currentPlayers.length === 0 ||
G.currentPlayers.includes(seat) ||
seat === G.auctioningPlayer ||
(G.highestBidders.length > 0 && !G.highestBidders.includes(seat))
)
return undefined;
return `${G.round}:${G.log.length}:${G.auctioningPlayer}:${G.highestBidders.length ? 'extra' : 'initial'}`;
}
export function canReviseBid(G: GameState, payload: unknown, seat: number): boolean {
const moves = Array.isArray(payload) ? payload : [payload];
if (moves.length !== 1) return false;
const move = moves[0] as Move;
const key = bidRevision(G, seat);
return !!key && !!move && move.name === MoveName.Bid && move.revision === key;
}

View file

@ -3,6 +3,7 @@ import { chunk, groupBy, isEqual, range, zip } from 'lodash';
import seedrandom from 'seedrandom';
import { availableMoves } from './available-moves';
import pointCards from './cards';
import { canReviseBid } from './choice-revisions';
import {
ContainerColor,
containerColors,
@ -140,19 +141,30 @@ export function currentPlayers(G: GameState): number[] {
export function move(G: GameState, move: Move, playerNumber: number, fake?: boolean): GameState {
const player = G.players[playerNumber];
const available = player.availableMoves?.[move.name];
const revision = move.revision !== undefined;
assert(!revision || canReviseBid(G, move, playerNumber), 'This bid can no longer be changed');
const available = revision ? availableMoves(G, player)[move.name] : player.availableMoves?.[move.name];
assert(G.currentPlayers.includes(playerNumber), 'It is not your turn!');
assert(revision || G.currentPlayers.includes(playerNumber), 'It is not your turn!');
assert(available, 'You are not allowed to run the command ' + move.name);
assert(
available.some((x) => isEqual(x, move.data)),
'Wrong argument for the command ' + move.name
);
assert(
move.name != MoveName.Bid || move.extraData.price + player.bid <= player.money,
move.name != MoveName.Bid ||
(Number.isInteger(move.extraData?.price) &&
move.extraData.price >= 0 &&
move.extraData.price + (G.highestBidders.length ? player.bid : 0) <= player.money),
"Can't bid more money than you have!"
);
G.liveUpdate = revision;
const previousBid = revision
? G.hiddenLog
.map((e) => e.type === 'move' && e.player === playerNumber && e.move.name === MoveName.Bid)
.lastIndexOf(true)
: -1;
switch (move.name) {
case MoveName.DomesticSale: {
asserts<Moves.MoveDomesticSale>(move);
@ -445,12 +457,13 @@ export function move(G: GameState, move: Move, playerNumber: number, fake?: bool
case MoveName.Bid: {
asserts<Moves.MoveBid>(move);
const { revision: ignored, ...recordedMove } = move;
if (G.highestBidders.length === 0) {
G.hiddenLog.push({
type: 'move',
player: playerNumber,
move,
move: recordedMove,
simple: `${player.name} bids $${move.extraData.price}`,
pretty: `${playerNameHTML(player)} bids $${move.extraData.price}`,
});
@ -460,7 +473,7 @@ export function move(G: GameState, move: Move, playerNumber: number, fake?: bool
G.hiddenLog.push({
type: 'move',
player: playerNumber,
move,
move: recordedMove,
simple: `${player.name} bids additional $${move.extraData.price}`,
pretty: `${playerNameHTML(player)} bids additional $${move.extraData.price}`,
});
@ -468,6 +481,9 @@ export function move(G: GameState, move: Move, playerNumber: number, fake?: bool
G.currentPlayers = G.currentPlayers.filter((id) => id !== player.id);
}
if (revision && previousBid >= 0) {
G.hiddenLog[previousBid] = G.hiddenLog.pop()!;
}
if (G.currentPlayers.length === 0) {
if (G.highestBidders.length === 0) {
G.players
@ -624,7 +640,10 @@ export function move(G: GameState, move: Move, playerNumber: number, fake?: bool
player.availableMoves = null;
if (move.name != MoveName.GetLoan && move.name != MoveName.PayLoan) player.lastMove = move;
if (move.name != MoveName.GetLoan && move.name != MoveName.PayLoan) {
const { revision: ignoredRevision, ...recordedMove } = move;
player.lastMove = recordedMove;
}
G.currentPlayers.forEach((p) => (G.players[p].availableMoves = availableMoves(G, G.players[p])));

View file

@ -120,6 +120,7 @@ export interface ShipPiece {
}
export interface GameState {
liveUpdate?: boolean;
analysisCash?: number[];
pendingMessages?: string[];
players: Player[];

View file

@ -90,7 +90,7 @@ export declare namespace Moves {
}
}
export type Move =
export type Move = (
| Moves.MoveBuyFromFactory
| Moves.MoveBuyFromWarehouse
| Moves.MoveBuyFactory
@ -105,7 +105,8 @@ export type Move =
| Moves.MoveAccept
| Moves.MoveDecline
| Moves.MovePass
| Moves.MoveDomesticSale;
| Moves.MoveDomesticSale
) & { revision?: string };
export enum MoveName {
DomesticSale = 'domesticSale',

View file

@ -1,6 +1,7 @@
import { expect } from 'chai';
import { cloneDeep } from 'lodash';
import * as wrapper from '../wrapper';
import { bidRevision } from './choice-revisions';
import { move as atomicMove, setup } from './engine';
import { GameState, Phase, ShipPosition } from './gamestate';
import { Move, MoveName } from './move';
@ -244,6 +245,51 @@ describe('wrapper (tentative turns)', () => {
return { A, B, C };
}
it('allows replacing sealed bids in each round without reopening the clock or exposing earlier bids', async () => {
const platform = new Platform(3, 'wrapper-test-revisions');
const { A, B, C } = await playToBidPhase(platform);
const bid = (price: number, revision?: string): Move => ({
name: MoveName.Bid,
data: true,
extraData: { price },
...(revision ? { revision } : {}),
});
await platform.send(bid(5), B);
const key = bidRevision(platform.saved, B)!;
const replacement = bid(3, key);
expect(wrapper.canMoveOutOfTurn(platform.saved, replacement, B)).to.equal(true);
expect(wrapper.canMoveOutOfTurn(platform.saved, replacement, A)).to.equal(false);
expect(wrapper.canMoveOutOfTurn(platform.saved, [replacement, getLoan], B)).to.equal(false);
await platform.send(replacement, B);
expect(wrapper.isLiveUpdate(platform.saved)).to.equal(true);
expect(platform.saved.currentPlayers).to.deep.equal([C]);
expect(platform.saved.hiddenLog).to.have.length(1);
expect(platform.saved.players[B].bid).to.equal(3);
expect(wrapper.stripSecret(platform.saved, C).players[B].bid).not.to.equal(3);
expect(wrapper.replay(platform.saved).players[B].bid).to.equal(3);
await platform.send(bid(3), C);
expect(wrapper.isLiveUpdate(platform.saved)).to.equal(false);
await platform.send(bid(2), B);
const extraKey = bidRevision(platform.saved, B)!;
expect(extraKey).not.to.equal(key);
expect(wrapper.canMoveOutOfTurn(platform.saved, replacement, B)).to.equal(false);
await platform.send(bid(0, extraKey), B);
expect(platform.saved.players[B].additionalBid).to.equal(0);
expect(platform.saved.hiddenLog).to.have.length(3);
expect(wrapper.replay(platform.saved).players[B].additionalBid).to.equal(0);
await platform.send(bid(1), C);
expect(platform.saved.phase).to.equal(Phase.AcceptDecline);
expect(platform.saved.highestBidders).to.deep.equal([C]);
expect(wrapper.canMoveOutOfTurn(platform.saved, bid(0, extraKey), B)).to.equal(false);
let rejected = false;
try {
await platform.send(bid(0, extraKey), B);
} catch {
rejected = true;
}
expect(rejected).to.equal(true);
});
it('should play a 3-player auction with a bid tie and an additional-bid round', async () => {
const platform = new Platform(3, 'wrapper-test-3p');
const { A, B, C } = await playToBidPhase(platform);

View file

@ -3,6 +3,7 @@ import seedrandom from 'seedrandom';
import type { GameState } from './index';
import { availableMoves } from './src/available-moves';
import pointCards from './src/cards';
import { canReviseBid } from './src/choice-revisions';
import * as engine from './src/engine';
import { Phase } from './src/gamestate';
import type { LogMove } from './src/log';
@ -79,6 +80,9 @@ export function toSave(G: GameState): GameState | undefined {
return G.newTurn === false ? undefined : G;
}
export const canMoveOutOfTurn = canReviseBid;
export const isLiveUpdate = (G: GameState): boolean => G.liveUpdate === true;
export function factions(G: GameState) {
return G.players.map((pl) => engine.playerColors[pl.id]);
}
@ -151,6 +155,7 @@ export function replay(G: GameState) {
G = engine.move(G, move.move, move.player);
}
G.liveUpdate = oldG.liveUpdate;
// Reconstructing history must not announce old auctions again.
if (oldG.pendingMessages) G.pendingMessages = [...oldG.pendingMessages];
else delete G.pendingMessages;
@ -162,6 +167,7 @@ export function round(G: GameState) {
}
export async function dropPlayer(G: GameState, player: number) {
G.liveUpdate = false;
G.players[player].isDropped = true;
// Auto-play only the dropped player's own pending decision, if any. Everything

View file

@ -1,6 +1,6 @@
{
"name": "container-viewer",
"version": "2.0.13",
"version": "2.0.14",
"repository": {
"type": "git",
"url": "git+https://github.com/boardgamers/container.git",

View file

@ -312,7 +312,7 @@
@click="decline()"
/>
</template>
<template v-else-if="G.phase == 'bid' && G.currentPlayers.includes(player)">
<template v-else-if="G.phase == 'bid' && (G.currentPlayers.includes(player) || changingBid)">
<rect
v-if="!preferences.disableHelp"
x="135"
@ -325,9 +325,23 @@
rx="2px"
/>
<Calculator data-tutorial="bid" transform="translate(140, 430)" @bid="bid($event)" />
<Button
v-if="changingBid"
transform="translate(140, 650)"
:width="130"
text="Cancel"
@click="editingBid = null"
/>
</template>
</template>
<Button
v-if="revisableBid && !changingBid"
transform="translate(140, 430)"
:width="130"
text="Change bid"
@click="editingBid = revisableBid"
/>
<template v-if="G && gameEnded(G)">
<Button
:transform="`translate(140, 580)`"
@ -709,7 +723,7 @@ import { colorBadgeHtml } from '../color-blind';
import { playerColors, playerTextColor, playerSymbol } from '../player-colors';
import { journalPieces } from '../journal-pieces';
import { Vue, Component, Prop, Watch, Provide, ProvideReactive } from 'vue-property-decorator';
import { MoveName, ended, isLoanReversal, move as engineMove } from 'container-engine';
import { bidRevision, MoveName, ended, isLoanReversal, move as engineMove } from 'container-engine';
import type { GameState, Move } from 'container-engine';
import { EventEmitter } from 'events';
import { groupBy, isEqual } from 'lodash';
@ -1348,8 +1362,20 @@ export default class Game extends Vue {
}
}
editingBid: string | null = null;
get revisableBid() {
return !this.interactionDisabled && this.G && this.player != null
? bidRevision(this.G, this.player)
: undefined;
}
get changingBid() {
return !!this.editingBid && this.editingBid === this.revisableBid;
}
bid(event) {
if (this.G!.players[this.player!].bid != 0) {
if (this.changingBid) {
this.sendMove({ name: MoveName.Bid, data: true, extraData: { price: event }, revision: this.editingBid! });
this.editingBid = null;
} else if (this.G!.highestBidders.length > 0) {
this.confirmBidVisible = true;
this.totalBid = this.G!.players[this.player!].bid + event;
} else {

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "Din ø: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Øens værdi hvis spillet sluttede nu, inklusive den kasserede farve og bonussen for et komplet sæt.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} accepterer buddet fra {p1} på ${p2} og modtager ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} afviser alle bud og køber lasten for ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} afviser alle bud og køber lasten for ${p1}",
"Change bid": "Ændr bud"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "Deine Insel: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Inselwertung bei sofortigem Spielende, einschließlich der entfernten Farbe und des Bonus für alle fünf Farben.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} nimmt das Gebot von {p1} über ${p2} an und erhält ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} lehnt alle Gebote ab und kauft die Ladung für ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} lehnt alle Gebote ab und kauft die Ladung für ${p1}",
"Change bid": "Gebot ändern"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "Το νησί σου: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Βαθμολογία νησιού αν το παιχνίδι τελείωνε τώρα, με την αφαίρεση του χρώματος και το μπόνους πλήρους σετ.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} δέχεται την προσφορά ${p2} του παίκτη {p1} και λαμβάνει ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} απορρίπτει όλες τις προσφορές και αγοράζει το φορτίο για ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} απορρίπτει όλες τις προσφορές και αγοράζει το φορτίο για ${p1}",
"Change bid": "Αλλαγή προσφοράς"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "Your island: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Island score if the game ended now, including the discarded colour and full-set bonus.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} accepts {p1}'s bid of ${p2} and receives ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} declines all bids and buys the cargo for ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} declines all bids and buys the cargo for ${p1}",
"Change bid": "Change bid"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "جزیرهٔ شما: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "امتیاز جزیره اگر بازی همین حالا تمام شود، با احتساب رنگ حذف‌شده و پاداش مجموعهٔ کامل رنگ‌ها.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} پیشنهاد ${p2} از {p1} را می‌پذیرد و ${p3} دریافت می‌کند",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} همهٔ پیشنهادها را رد می‌کند و محموله را به قیمت ${p1} می‌خرد"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} همهٔ پیشنهادها را رد می‌کند و محموله را به قیمت ${p1} می‌خرد",
"Change bid": "تغییر پیشنهاد"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "Votre île : ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Score de votre île si la partie se terminait maintenant, après retrait de la couleur défaussée et application du bonus des cinq couleurs.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} accepte l’enchère de {p1} de ${p2} et reçoit ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} refuse toutes les enchères et achète la cargaison pour ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} refuse toutes les enchères et achète la cargaison pour ${p1}",
"Change bid": "Modifier l’enchère"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "आपका द्वीप: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "यदि खेल अभी समाप्त हो जाए तो द्वीप का स्कोर, हटाए गए रंग और पूरे सेट के बोनस सहित।",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0}, {p1} की ${p2} की बोली स्वीकार करता है और ${p3} प्राप्त करता है",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} सभी बोलियाँ अस्वीकार करके ${p1} में माल खरीदता है"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} सभी बोलियाँ अस्वीकार करके ${p1} में माल खरीदता है",
"Change bid": "बोली बदलें"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "La tua isola: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Punteggio dell’isola se la partita finisse ora, inclusi il colore scartato e il bonus del set completo.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} accetta l’offerta di ${p2} di {p1} e riceve ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} rifiuta tutte le offerte e acquista il carico per ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} rifiuta tutte le offerte e acquista il carico per ${p1}",
"Change bid": "Modifica offerta"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "내 섬: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "지금 게임이 끝날 경우의 섬 점수입니다. 버리는 색상과 전체 색상 세트 보너스를 반영합니다.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0}: {p1}의 ${p2} 입찰을 수락하고 ${p3}를 받습니다",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0}: 모든 입찰을 거절하고 화물을 ${p1}에 구매합니다"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0}: 모든 입찰을 거절하고 화물을 ${p1}에 구매합니다",
"Change bid": "입찰 변경"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "Jouw eiland: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Eilandscore als het spel nu zou eindigen, inclusief de verwijderde kleur en de bonus voor een volledige set.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} accepteert het bod van {p1} van ${p2} en ontvangt ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} wijst alle biedingen af en koopt de lading voor ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} wijst alle biedingen af en koopt de lading voor ${p1}",
"Change bid": "Bod wijzigen"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "Twoja wyspa: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Wynik wyspy, gdyby gra skończyła się teraz, z uwzględnieniem odrzuconego koloru i premii za komplet kolorów.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} przyjmuje ofertę {p1} w wysokości ${p2} i otrzymuje ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} odrzuca wszystkie oferty i kupuje ładunek za ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} odrzuca wszystkie oferty i kupuje ładunek za ${p1}",
"Change bid": "Zmień ofertę"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "Sua ilha: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Pontuação da ilha se a partida terminasse agora, considerando a cor descartada e o bônus do conjunto completo.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} aceita o lance de ${p2} de {p1} e recebe ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} recusa todos os lances e compra a carga por ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} recusa todos os lances e compra a carga por ${p1}",
"Change bid": "Alterar lance"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "Insula ta: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Scorul insulei dacă jocul s-ar termina acum, incluzând culoarea eliminată și bonusul pentru setul complet.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} acceptă oferta de ${p2} a lui {p1} și primește ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} refuză toate ofertele și cumpără încărcătura pentru ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} refuză toate ofertele și cumpără încărcătura pentru ${p1}",
"Change bid": "Modifică oferta"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "Ваш остров: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Стоимость острова, если бы игра закончилась сейчас, с учётом сброшенного цвета и бонуса за полный набор.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} принимает ставку {p1} в размере ${p2} и получает ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} отклоняет все ставки и покупает груз за ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} отклоняет все ставки и покупает груз за ${p1}",
"Change bid": "Изменить ставку"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "Đảo của bạn: ${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "Điểm đảo nếu trò chơi kết thúc ngay bây giờ, đã tính màu bị loại và thưởng đủ bộ màu.",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} chấp nhận giá ${p2} của {p1} và nhận ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} từ chối mọi giá đấu và mua hàng với giá ${p1}"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} từ chối mọi giá đấu và mua hàng với giá ${p1}",
"Change bid": "Đổi giá đấu"
}

View file

@ -651,5 +651,6 @@
"Your island: ${p0}": "你的島嶼:${p0}",
"Island score if the game ended now, including the discarded colour and full-set bonus.": "若遊戲現在結束,島嶼的計分價值,已計入棄置顏色與完整顏色組合加成。",
"{p0} accepts {p1}'s bid of ${p2} and receives ${p3}": "{p0} 接受 {p1} 的 ${p2} 出價並獲得 ${p3}",
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} 拒絕所有出價並以 ${p1} 購買貨物"
"{p0} declines all bids and buys the cargo for ${p1}": "{p0} 拒絕所有出價並以 ${p1} 購買貨物",
"Change bid": "更改出價"
}