Keep the fishing tutorial's price decrease visible

This commit is contained in:
coyotte508 2026-09-26 00:38:52 +02:00
commit 225c6f3b1e
20 changed files with 165 additions and 35 deletions

View file

@ -48,7 +48,7 @@ The fixed starting island is additional to this table. Two tiles of each letter
## Validation
- 34 focused engine/tutorial tests: majorities, prerequisites, optional powers, export resource selection, money conversion, two-player blocking, illegal-move immutability, hidden information, dropped players, deterministic replay, legacy saves, the 4/5/6/1 footprint, floods and complete tutorials.
- 35 focused engine/tutorial tests: majorities, prerequisites, optional powers, export resource selection, money conversion, two-player blocking, illegal-move immutability, hidden information, dropped players, deterministic replay, legacy saves, the 4/5/6/1 footprint, floods, complete tutorials and the visible fish-price decrease before the next round resets it.
- 80 full simulated games (14,564 moves in the latest sweep), across 2/3/4/5 players with and without Rising Waters. Both purposeful bots and varied legal choices exercise all nine actions and the Governor. These check termination, resource invariants and deterministic reconstruction; they do not establish strategic bot strength or resolve component discrepancies.
- Browser checks at **1440 px** and **390 px**: all nine actions, planning, tile placement, final scores, no page-width overflow, color symbols, replay, analysis chat hiding, player hover, board thumbnails, chat scroll-to-bottom, translation controls and ↑ editing.
- The installed production engine completed an eight-round bot game and reconstructed its history. The uploaded viewer is checked through a protocol harness. A real multi-account online session remains a useful beta playtest.

View file

@ -140,6 +140,73 @@ try {
});
await page.close();
}
for (const [locale, completion, tooltip] of [
[
"en",
"The fish price has dropped from 3 to 2",
"Falls by 1 after each sale",
],
[
"fr",
"Le prix du poisson est passé de 3 à 2",
"Baisse de 1 après chaque vente",
],
]) {
const page = await browser.newPage({
viewport: { width: 1440, height: 1000 },
});
const launch = async () => {
await page.evaluate(async (locale) => {
await window.vanuatu.launchTutorial("#game", {
chapter: "fishing",
locale,
onProgress: (progress) => (window.progress = progress),
});
}, locale);
};
await page.goto(`http://127.0.0.1:${server.address().port}/`);
await launch();
assert.equal(await page.locator(".fish-price b").innerText(), "3");
for (const action of ["sail", "fish", "sell"]) {
await page.locator(`[data-action="${action}"]`).click();
if (action === "sail")
await page.locator('.map-cell[data-cell="1,0"]').click();
await page.locator(".turn-tray .primary[data-move]").first().click();
}
const verify = async () => {
await page.waitForFunction(() => window.progress?.completed);
await page.waitForFunction(
(text) =>
document
.querySelector(".bgs-tutorial-body")
?.textContent.includes(text),
completion,
);
assert.equal(await page.locator(".fish-price b").innerText(), "2");
assert.equal(
await page.locator(".round-track .current").innerText(),
"1",
);
assert.ok(
(await page.locator(".fish-price").getAttribute("title")).includes(
tooltip,
),
);
assert.equal(
await page.locator(".fish-price .token").getAttribute("title"),
await page.locator(".fish-price").getAttribute("title"),
);
};
await verify();
await page.screenshot({
path: `.local/qa/tutorial-fish-price-${locale}.png`,
fullPage: true,
});
await page.reload();
await launch();
await verify();
await page.close();
}
const saved = new Map();
const lesson = await createTutorial({
...chapters.planning,
@ -208,7 +275,7 @@ try {
);
await page.close();
console.log(
"Nine tutorial steps, completion controls, mobile/desktop layout, French/Dutch locale forwarding and white-resource export passed.",
"Nine tutorial steps, completion controls, mobile/desktop layout, French/Dutch locale forwarding, fishing price and restored progress, and white-resource export passed.",
);
} finally {
await browser.close();

View file

@ -2,7 +2,7 @@ import test from "node:test";
import assert from "node:assert/strict";
import { createTutorial } from "@boardgamers/protocol/tutorial";
import { chapters } from "../viewer/tutorials.js";
import { availableMoves } from "../engine/index.js";
import { availableMoves, move } from "../engine/index.js";
for (const [id, chapter] of Object.entries(chapters))
test(`tutorial ${id} is completable with real engine moves`, async () => {
const lesson = await createTutorial(chapter);
@ -23,3 +23,48 @@ for (const [id, chapter] of Object.entries(chapters))
assert.equal(lesson.snapshot.completed, true);
lesson.destroy();
});
test("the fishing lesson shows the sale's lower price before the next round resets it", async () => {
const saved = new Map();
const options = {
...chapters.fishing,
storage: {
getItem: (key) => saved.get(key) ?? null,
setItem: (key, value) => saved.set(key, value),
removeItem: (key) => saved.delete(key),
},
};
const lesson = await createTutorial(options);
for (const action of ["sail", "fish", "sell"]) {
const state = lesson.snapshot.state;
const selected = availableMoves(state, 0).find(
(m) =>
m.action === action &&
(action !== "sail" || (m.path.length === 1 && m.path[0] === "1,0")),
);
assert.equal(await lesson.play(selected), true);
assert.equal(lesson.snapshot.state.market, action === "sell" ? 2 : 3);
assert.equal(lesson.snapshot.state.round, 1);
}
assert.equal(lesson.snapshot.completed, true);
assert.equal(lesson.snapshot.state.players[0].money, 8);
let next = lesson.snapshot.state;
next = move(
next,
availableMoves(next, 0).find((m) => m.action === "rest"),
0,
);
next = move(
next,
availableMoves(next, 0).find((m) => m.type === "rest"),
0,
);
assert.equal(next.round, 2);
assert.equal(next.market, 3);
lesson.destroy();
const resumed = await createTutorial(options);
assert.equal(resumed.snapshot.completed, true);
assert.equal(resumed.snapshot.state.market, 2);
assert.equal(resumed.snapshot.state.round, 1);
resumed.destroy();
});

View file

@ -398,7 +398,7 @@
"Sélectionné": "Valgt",
"Terminé": "Afsluttet",
"That move is not available": "Det træk er ikke tilgængeligt",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "Fiskeprisen falder efter hvert salg og vender tilbage til startværdien i næste runde. Hver 10 vatu veksles automatisk til 5 velstand.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "Fiskeprisen er faldet fra 3 til 2 (øverst til venstre på brættet). Den sættes tilbage til 3 i starten af næste runde. Hver 10 vatu veksles automatisk til 5 velstand.",
"The game has ended": "Spillet er slut",
"The islands were submerged": "Øerne blev oversvømmet",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "De andre har placeret deres markører. Forstærk en handling eller planlæg noget nyt. En handling kan udføres én gang, uanset hvor mange markører du placerer der.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Ikke nok vatu.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "Har du endnu ikke råd til at bygge, kan du vælge en anden handling, hvor du har flertal, og gemme Byg til senere. Vælger du Byg nu, tager du markørerne tilbage uden at bygge. Har du ikke flertal nogen steder, skal du tage én stak tilbage uden handling. Kan den valgte handling udføres, skal du udføre den.",
"Designed by {p0}": "Designet af {p0}",
"Published by {p0}": "Udgivet af {p0}"
"Published by {p0}": "Udgivet af {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Fiskepris: {p0} vatu pr. point fiskeværdi. Falder med 1 efter hvert salg (mindst 1); sættes tilbage til 3 i starten af næste runde."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "Ausgewählt",
"Terminé": "Beendet",
"That move is not available": "Dieser Zug ist nicht verfügbar",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "Der Fischpreis sinkt nach jedem Verkauf und wird zu Beginn der nächsten Runde zurückgesetzt. Je 10 Vatu werden automatisch in 5 Wohlstand umgewandelt.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "Der Fischpreis ist von 3 auf 2 gesunken (oben links auf dem Spielplan). Zu Beginn der nächsten Runde wird er auf 3 zurückgesetzt. Je 10 Vatu werden automatisch in 5 Wohlstand umgewandelt.",
"The game has ended": "Das Spiel ist beendet",
"The islands were submerged": "Die Inseln sind versunken",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "Die anderen haben ihre Marker platziert. Verstärke eine Aktion oder plane etwas Neues. Eine Aktion kann nur einmal ausgeführt werden, egal wie viele Marker du dort platzierst.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Nicht genug Vatu.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "Kannst du Bauen noch nicht bezahlen, darfst du zuerst eine andere Aktion wählen, bei der du die Mehrheit hast, und Bauen für später aufheben. Wählst du Bauen jetzt, nimmst du deine Marker zurück, ohne zu bauen. Hast du nirgends die Mehrheit, musst du einen Stapel ohne Aktion zurücknehmen. Ist eine gewählte Aktion möglich, musst du sie ausführen.",
"Designed by {p0}": "Autor: {p0}",
"Published by {p0}": "Verlag: {p0}"
"Published by {p0}": "Verlag: {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Fischpreis: {p0} Vatu pro Fischwert. Sinkt nach jedem Verkauf um 1 (mindestens 1); wird zu Beginn der nächsten Runde auf 3 zurückgesetzt."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "Επιλεγμένο",
"Terminé": "Ολοκληρώθηκε",
"That move is not available": "Αυτή η κίνηση δεν είναι διαθέσιμη",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "Η τιμή των ψαριών μειώνεται μετά από κάθε πώληση και επιστρέφει στην αρχική τιμή στον επόμενο γύρο. Κάθε 10 βάτου μετατρέπονται αυτόματα σε 5 ευημερία.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "Η τιμή των ψαριών έπεσε από 3 σε 2 (πάνω αριστερά στο ταμπλό). Στην αρχή του επόμενου γύρου επανέρχεται στο 3. Κάθε 10 βάτου μετατρέπονται αυτόματα σε 5 πόντους ευημερίας.",
"The game has ended": "Το παιχνίδι τελείωσε",
"The islands were submerged": "Τα νησιά βυθίστηκαν",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "Οι άλλοι έχουν τοποθετήσει τους δείκτες τους. Ενίσχυσε μια ενέργεια ή σχεδίασε κάτι νέο. Μια ενέργεια μπορεί να εκτελεστεί μία φορά, όσους δείκτες κι αν τοποθετήσεις εκεί.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Δεν αρκούν τα βάτου.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "Αν δεν μπορείς ακόμη να πληρώσεις για Κατασκευή, μπορείς να επιλέξεις άλλη δράση όπου έχεις την πλειοψηφία και να κρατήσεις την Κατασκευή για αργότερα. Αν την επιλέξεις τώρα, παίρνεις πίσω τους δείκτες σου χωρίς να χτίσεις. Αν δεν έχεις πλειοψηφία πουθενά, πρέπει να πάρεις πίσω μία στοίβα χωρίς δράση. Αν η δράση που επιλέγεις είναι εφικτή, πρέπει να την εκτελέσεις.",
"Designed by {p0}": "Σχεδιασμός: {p0}",
"Published by {p0}": "Έκδοση: {p0}"
"Published by {p0}": "Έκδοση: {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Τιμή ψαριών: {p0} βάτου ανά μονάδα αξίας ψαριού. Μειώνεται κατά 1 μετά από κάθε πώληση (ελάχιστο 1) και επανέρχεται στο 3 στην αρχή του επόμενου γύρου."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "Sélectionné",
"Terminé": "Terminé",
"That move is not available": "That move is not available",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.",
"The game has ended": "The game has ended",
"The islands were submerged": "The islands were submerged",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Not enough vatus.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.",
"Designed by {p0}": "Designed by {p0}",
"Published by {p0}": "Published by {p0}"
"Published by {p0}": "Published by {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "Sélectionné",
"Terminé": "Terminé",
"That move is not available": "Ce coup n'est pas disponible",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "Le prix du poisson baisse après une vente et revient à sa valeur initiale à la manche suivante. Chaque tranche de 10 vatus est automatiquement convertie en 5 points de prospérité.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "Le prix du poisson est passé de 3 à 2 (en haut à gauche du plateau). Il reviendra à 3 à la prochaine manche. Chaque tranche de 10 vatus est automatiquement convertie en 5 points de prospérité.",
"The game has ended": "La partie est terminée",
"The islands were submerged": "Les îles ont été submergées",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "Les autres joueurs ont placé leurs pions. Renforcez une action ou programmez-en une autre. Vous ne pouvez effectuer chaque action qu’une fois, quel que soit le nombre de pions que vous y placez.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Pas assez de vatus.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "Si vous ne pouvez pas encore payer pour Construire, vous pouvez choisir une autre action où vous êtes majoritaire et garder Construire pour plus tard. Résoudre Construire maintenant signifie reprendre ses pions sans construire. Si vous n’avez la majorité nulle part, vous devez reprendre une pile sans agir. Lorsque vous résolvez une action réalisable, vous devez l’effectuer.",
"Designed by {p0}": "Créé par {p0}",
"Published by {p0}": "Édité par {p0}"
"Published by {p0}": "Édité par {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Prix du poisson : {p0} vatus par point de valeur du poisson. Baisse de 1 après chaque vente (minimum 1) ; revient à 3 à la prochaine manche."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "चयनित",
"Terminé": "समाप्त",
"That move is not available": "वह चाल उपलब्ध नहीं है",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "हर बिक्री के बाद मछली की कीमत घटती है और अगले दौर में शुरुआती कीमत पर लौट आती है। हर 10 वातु अपने आप 5 समृद्धि में बदल जाते हैं।",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "मछली की कीमत 3 से घटकर 2 हो गई है (बोर्ड के ऊपर बाईं ओर)। अगले दौर की शुरुआत में यह फिर 3 हो जाएगी। हर 10 वातु अपने आप 5 समृद्धि में बदल जाते हैं।",
"The game has ended": "खेल समाप्त हो गया है",
"The islands were submerged": "द्वीप डूब गए",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "अन्य खिलाड़ियों ने अपने मार्कर रख दिए हैं। किसी क्रिया पर और मार्कर रखें या नई क्रिया की योजना बनाएँ। आप किसी क्रिया पर कितने भी मार्कर रखें, उसे केवल एक बार कर सकते हैं।",
@ -796,5 +796,6 @@
"Not enough vatus.": "पर्याप्त वातु नहीं हैं।",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "यदि अभी निर्माण के लिए पर्याप्त धन नहीं है, तो आप कोई दूसरी क्रिया चुन सकते हैं जिस पर आपका बहुमत है, और निर्माण को बाद के लिए रख सकते हैं। अभी निर्माण चुनने पर, बिना निर्माण किए उसके मार्कर वापस लेने होंगे। यदि कहीं भी आपका बहुमत नहीं है, तो क्रिया किए बिना एक ढेर वापस लेना होगा। यदि चुनी गई क्रिया संभव है, तो उसे करना अनिवार्य है।",
"Designed by {p0}": "डिज़ाइन: {p0}",
"Published by {p0}": "प्रकाशक: {p0}"
"Published by {p0}": "प्रकाशक: {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "मछली की कीमत: मछली के मूल्य के हर अंक पर {p0} वातु। हर बिक्री के बाद 1 घटती है (न्यूनतम 1); अगले दौर की शुरुआत में फिर 3 हो जाती है।"
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "Selezionato",
"Terminé": "Terminato",
"That move is not available": "Questa mossa non è disponibile",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "Il prezzo del pesce scende dopo ogni vendita e torna al valore iniziale nel round successivo. Ogni 10 vatu si convertono automaticamente in 5 prosperità.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "Il prezzo del pesce è sceso da 3 a 2 (in alto a sinistra sul tabellone). Tornerà a 3 all’inizio del prossimo round. Ogni 10 vatu si convertono automaticamente in 5 prosperità.",
"The game has ended": "La partita è terminata",
"The islands were submerged": "Le isole sono state sommerse",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "Gli altri hanno piazzato i loro segnalini. Rafforza un'azione o pianifica qualcosa di nuovo. Un'azione può essere eseguita una sola volta, indipendentemente da quanti segnalini piazzi lì.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Vatu insufficienti.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "Se non puoi ancora permetterti di Costruire, puoi scegliere un’altra azione in cui hai la maggioranza e tenere Costruire per dopo. Risolvere Costruire adesso significa ritirare i segnalini senza costruire. Se non hai la maggioranza da nessuna parte, devi ritirare una pila senza agire. Quando risolvi un’azione che puoi eseguire, devi eseguirla.",
"Designed by {p0}": "Ideato da {p0}",
"Published by {p0}": "Pubblicato da {p0}"
"Published by {p0}": "Pubblicato da {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Prezzo del pesce: {p0} vatu per punto di valore del pesce. Scende di 1 dopo ogni vendita (minimo 1); torna a 3 all’inizio del prossimo round."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "선택됨",
"Terminé": "종료됨",
"That move is not available": "그 이동은 사용할 수 없음",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "생선 가격은 판매할 때마다 내려가고 다음 라운드에 시작 가격으로 돌아갑니다. 10바투마다 자동으로 번영 5로 교환됩니다.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "생선 가격이 3에서 2로 내려갔습니다(보드 왼쪽 위). 다음 라운드가 시작되면 다시 3이 됩니다. 10바투마다 자동으로 번영 5로 교환됩니다.",
"The game has ended": "게임이 종료되었습니다",
"The islands were submerged": "섬들이 침수되었다",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "다른 플레이어들이 마커를 배치했다. 행동을 강화하거나 새로운 것을 계획하라. 행동은 마커를 몇 개 놓든 한 번만 수행할 수 있다.",
@ -796,5 +796,6 @@
"Not enough vatus.": "바투가 부족합니다.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "아직 건설 비용이 부족하다면 우선권이 있는 다른 행동을 먼저 선택하고 건설 마커는 나중을 위해 남겨 둘 수 있습니다. 지금 건설을 처리하면 건설하지 않고 마커만 회수합니다. 어떤 행동에서도 우선권이 없다면 행동하지 않고 마커 더미 하나를 회수해야 합니다. 수행 가능한 행동을 처리하기로 했다면 반드시 그 행동을 수행해야 합니다.",
"Designed by {p0}": "디자인: {p0}",
"Published by {p0}": "출판: {p0}"
"Published by {p0}": "출판: {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "생선 가격: 생선 가치 1당 {p0}바투. 판매할 때마다 1씩 내려갑니다(최소 1). 다음 라운드가 시작되면 다시 3이 됩니다."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "Geselecteerd",
"Terminé": "Beëindigd",
"That move is not available": "Die zet is niet beschikbaar",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "De visprijs daalt na elke verkoop en keert aan het begin van de volgende ronde terug naar de beginwaarde. Elke 10 vatu wordt automatisch omgezet in 5 welvaart.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "De visprijs is gedaald van 3 naar 2 (linksboven op het bord). Aan het begin van de volgende ronde wordt de prijs weer 3. Elke 10 vatu wordt automatisch omgezet in 5 welvaart.",
"The game has ended": "Het spel is afgelopen",
"The islands were submerged": "De eilanden zijn ondergelopen",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "De anderen hebben hun markers geplaatst. Versterk een actie of plan iets nieuws. Je kunt een actie één keer uitvoeren, ongeacht hoeveel markers je erop plaatst.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Niet genoeg vatu.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "Als je Bouwen nog niet kunt betalen, mag je een andere actie kiezen waarbij je de meerderheid hebt en Bouwen bewaren voor later. Als je Bouwen nu afhandelt, neem je je pionnen terug zonder te bouwen. Heb je nergens de meerderheid, dan moet je één stapel terugnemen zonder actie. Kun je de gekozen actie uitvoeren, dan moet je die uitvoeren.",
"Designed by {p0}": "Ontworpen door {p0}",
"Published by {p0}": "Uitgegeven door {p0}"
"Published by {p0}": "Uitgegeven door {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Visprijs: {p0} vatu per punt viswaarde. Daalt na elke verkoop met 1 (minimum 1); wordt aan het begin van de volgende ronde weer 3."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "Wybrany",
"Terminé": "Zakończony",
"That move is not available": "Ten ruch jest niedostępny",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "Cena ryb spada po każdej sprzedaży i wraca do wartości początkowej w następnej rundzie. Każde 10 vatu automatycznie zamienia się w 5 dobrobytu.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "Cena ryb spadła z 3 do 2 (lewy górny róg planszy). Na początku następnej rundy wróci do 3. Każde 10 vatu automatycznie zamienia się w 5 dobrobytu.",
"The game has ended": "Gra się zakończyła",
"The islands were submerged": "Wyspy zatonęły",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "Pozostali umieścili swoje znaczniki. Wzmocnij akcję lub zaplanuj coś nowego. Akcję można wykonać raz, niezależnie od liczby umieszczonych tam znaczników.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Za mało vatu.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "Jeśli nie stać cię jeszcze na Budowę, możesz wybrać inną akcję, na której masz większość, i zostawić Budowę na później. Rozpatrzenie Budowy teraz oznacza zabranie pionków bez budowania. Jeśli nigdzie nie masz większości, musisz zabrać jeden stos bez wykonywania akcji. Gdy rozpatrujesz akcję, którą możesz wykonać, musisz ją wykonać.",
"Designed by {p0}": "Autor: {p0}",
"Published by {p0}": "Wydawca: {p0}"
"Published by {p0}": "Wydawca: {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Cena ryb: {p0} vatu za punkt wartości ryb. Spada o 1 po każdej sprzedaży (minimum 1); na początku następnej rundy wraca do 3."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "Selecionado",
"Terminé": "Concluído",
"That move is not available": "Esse movimento não está disponível",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "O preço dos peixes cai após cada venda e volta ao valor inicial na próxima rodada. A cada 10 vatus, você recebe automaticamente 5 de prosperidade em troca.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "O preço dos peixes caiu de 3 para 2 (no canto superior esquerdo do tabuleiro). Ele volta a 3 no início da próxima rodada. A cada 10 vatus, você recebe automaticamente 5 de prosperidade em troca.",
"The game has ended": "O jogo terminou",
"The islands were submerged": "As ilhas foram submersas",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "Os outros colocaram seus marcadores. Reforce uma ação ou planeje algo novo. Uma ação pode ser realizada uma vez, não importa quantos marcadores você coloque lá.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Vatus insuficientes.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "Se ainda não puder pagar para Construir, pode escolher outra ação na qual tenha maioria e deixar Construir para depois. Resolver Construir agora significa recolher seus marcadores sem construir. Se não tiver maioria em nenhuma ação, deve recolher uma pilha sem agir. Ao resolver uma ação que pode executar, deve executá-la.",
"Designed by {p0}": "Criado por {p0}",
"Published by {p0}": "Publicado por {p0}"
"Published by {p0}": "Publicado por {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Preço dos peixes: {p0} vatus por ponto de valor do peixe. Cai 1 após cada venda (mínimo 1); volta a 3 no início da próxima rodada."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "Selectat",
"Terminé": "Terminat",
"That move is not available": "Această mutare nu este disponibilă",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "Prețul peștelui scade după fiecare vânzare și revine la valoarea inițială în runda următoare. Fiecare 10 vatu se transformă automat în 5 prosperitate.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "Prețul peștelui a scăzut de la 3 la 2 (în stânga sus a tablei). Revine la 3 la începutul rundei următoare. Fiecare 10 vatu se transformă automat în 5 puncte de prosperitate.",
"The game has ended": "Jocul s-a terminat",
"The islands were submerged": "Insulele au fost scufundate",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "Ceilalți și-au plasat marcatorii. Întărește o acțiune sau planifică ceva nou. O acțiune poate fi efectuată o singură dată, indiferent câți marcatori plasezi acolo.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Nu ai destui vatu.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "Dacă nu îți permiți încă să construiești, poți alege altă acțiune la care ai majoritatea și să păstrezi Construcția pentru mai târziu. Rezolvarea Construcției acum înseamnă să îți retragi pionii fără să construiești. Dacă nu ai majoritatea nicăieri, trebuie să retragi un teanc fără să acționezi. Când rezolvi o acțiune posibilă, trebuie să o efectuezi.",
"Designed by {p0}": "Creat de {p0}",
"Published by {p0}": "Publicat de {p0}"
"Published by {p0}": "Publicat de {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Prețul peștelui: {p0} vatu pentru fiecare punct din valoarea peștelui. Scade cu 1 după fiecare vânzare (minimum 1); revine la 3 la începutul rundei următoare."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "Выбрано",
"Terminé": "Завершено",
"That move is not available": "Этот ход недоступен",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "Цена рыбы снижается после каждой продажи и возвращается к исходному значению в следующем раунде. Каждые 10 вату автоматически обмениваются на 5 процветания.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "Цена рыбы снизилась с 3 до 2 (в левом верхнем углу поля). В начале следующего раунда она вернётся к 3. Каждые 10 вату автоматически обмениваются на 5 очков процветания.",
"The game has ended": "Игра окончена",
"The islands were submerged": "Острова были затоплены",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "Остальные разместили свои маркеры. Усиль действие или запланируй что-то новое. Действие можно выполнить один раз, сколько бы маркеров ты туда ни поставил.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Недостаточно вату.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "Если денег на строительство пока не хватает, можно выбрать другое действие, где у вас есть большинство, а строительство оставить на потом. Выбрав строительство сейчас, вы заберёте фишки, ничего не построив. Если большинства нет нигде, вы обязаны забрать одну стопку без действия. Если выбранное действие выполнимо, его обязательно нужно выполнить.",
"Designed by {p0}": "Автор: {p0}",
"Published by {p0}": "Издатель: {p0}"
"Published by {p0}": "Издатель: {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Цена рыбы: {p0} вату за единицу ценности рыбы. Снижается на 1 после каждой продажи (минимум 1); в начале следующего раунда возвращается к 3."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "Đã chọn",
"Terminé": "Đã hoàn thành",
"That move is not available": "Nước đi đó không khả dụng",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "Giá cá giảm sau mỗi lần bán và trở về mức ban đầu ở vòng tiếp theo. Cứ 10 vatu sẽ tự động đổi thành 5 thịnh vượng.",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "Giá cá đã giảm từ 3 xuống 2 (ở góc trên bên trái bàn chơi). Giá sẽ trở lại 3 khi vòng tiếp theo bắt đầu. Cứ 10 vatu sẽ tự động đổi thành 5 thịnh vượng.",
"The game has ended": "Trò chơi đã kết thúc",
"The islands were submerged": "Các hòn đảo đã bị nhấn chìm",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "Những người khác đã đặt điểm đánh dấu. Tăng cường một hành động hoặc lên kế hoạch mới. Một hành động chỉ thực hiện một lần, dù bạn đặt bao nhiêu điểm đánh dấu ở đó.",
@ -796,5 +796,6 @@
"Not enough vatus.": "Không đủ vatu.",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "Nếu chưa đủ tiền để Xây dựng, bạn có thể chọn hành động khác mà mình chiếm đa số và để Xây dựng lại sau. Giải quyết Xây dựng ngay lúc này nghĩa là thu hồi quân mà không xây. Nếu không chiếm đa số ở bất kỳ hành động nào, bạn phải thu hồi một chồng quân mà không hành động. Nếu hành động đã chọn có thể thực hiện được, bạn bắt buộc phải thực hiện.",
"Designed by {p0}": "Thiết kế: {p0}",
"Published by {p0}": "Phát hành: {p0}"
"Published by {p0}": "Phát hành: {p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "Giá cá: {p0} vatu cho mỗi điểm giá trị cá. Giảm 1 sau mỗi lần bán (tối thiểu 1); trở lại 3 khi vòng tiếp theo bắt đầu."
}

View file

@ -398,7 +398,7 @@
"Sélectionné": "已選取",
"Terminé": "已結束",
"That move is not available": "該行動不可用",
"The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.": "魚價在每次售出後下降,下一回合恢復為起始價格。每 10 瓦圖自動轉換為 5 點繁榮。",
"The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.": "魚價已從 3 降至 2(見版圖左上角)。下一回合開始時會恢復為 3。每 10 瓦圖自動轉換為 5 點繁榮。",
"The game has ended": "遊戲已結束",
"The islands were submerged": "島嶼已沉沒",
"The others have placed their markers. Reinforce an action or plan something new. An action can be performed once, however many markers you place there.": "其他人已放置標記。強化某個行動或規劃新行動。無論你在該處放置多少標記,每個行動只能執行一次。",
@ -796,5 +796,6 @@
"Not enough vatus.": "瓦圖不足。",
"If you cannot afford Build yet, you can choose another action where you have the majority and keep Build for later. Resolving Build now means retrieving its markers without building. If you have no majority anywhere, you must retrieve one stack without acting. When resolving an action you can perform, you must perform it.": "若目前付不起建造費用,可以先選擇另一個自己有優先權的行動,把建造留到之後。現在選擇處理建造,就只能收回標記,不建造。若所有行動都沒有優先權,就必須收回自己的一堆標記而不執行行動。若選擇處理的行動可以執行,就必須執行。",
"Designed by {p0}": "設計:{p0}",
"Published by {p0}": "出版:{p0}"
"Published by {p0}": "出版:{p0}",
"Fish price: {p0} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.": "魚價:每點魚類價值可換得 {p0} 瓦圖。每次出售後下降 1(最低為 1);下一回合開始時恢復為 3。"
}

View file

@ -132,6 +132,8 @@ export const chapters = {
s.players[0].markers.sail = 1;
s.players[0].markers.fish = 1;
s.players[0].markers.sell = 1;
// Leave Rest unresolved so the sale's price drop is visible before round setup.
s.players[0].markers.rest = 2;
return s;
},
move: play,
@ -163,7 +165,7 @@ export const chapters = {
],
completion: {
title: "Trade keeps you moving",
text: "The fish market falls after a sale and resets next round. Every 10 vatus automatically becomes 5 prosperity.",
text: "The fish price has dropped from 3 to 2 (top left of the board). It resets to 3 next round. Every 10 vatus automatically becomes 5 prosperity.",
},
},
islands: {

View file

@ -349,6 +349,7 @@ export function mountGame(target, options = {}) {
const sx = scroll?.scrollLeft ?? 0,
sy = scroll?.scrollTop ?? 0;
const trayHtml = tray();
const marketHelp = `Fish price: ${s.market} vatus per fish value. Falls by 1 after each sale (minimum 1); resets to 3 next round.`;
const targets =
s.phase === "expand"
? working()
@ -356,7 +357,7 @@ export function mountGame(target, options = {}) {
.map((m) => m.cell)
: actualTargets();
play.innerHTML = `<header class="game-header"><div class="brand">${btn("🏝️ Vanuatu", "data-boardgame", "wordmark")}<div class="game-credits"><span>Designed by Alain Epron</span><span>Published by Quined Games</span></div></div><div class="round-track" aria-label="${t("round")} ${s.round}/8">${Array.from({ length: 8 }, (_, i) => `<span title="${t("round")} ${i + 1}/8" class="${i + 1 === s.round ? "current" : i + 1 < s.round ? "past" : ""}">${i + 1}</span>`).join("")}</div><nav class="header-tools">${analysis || !options.chat ? "" : titled(t("chat"), `${icon("chat")}<span class="unread-badge" hidden></span>`, 'data-activity="chat"', "icon-button")}${titled(t("journal"), icon("journal"), 'data-activity="journal"', "icon-button")}${titled(t("colorBlind"), icon("colorBlind"), `data-color-blind aria-pressed="${colorBlind}"`, "icon-button")}${titled(t("help"), icon("help"), "data-help", "icon-button")}${titled(t("full"), icon("fullscreen"), "data-fullscreen", "icon-button")}</nav></header>
<div class="table">${dock()}<section class="sea-board" style="--ocean:url('${assets.ocean}')"><div class="sea-dashboard"><div class="market-info"><span title="${t("market")}">${icon("fish", t("market"))} = ${token("coin", s.market, `${t("market")}: ${s.market} ${"vatus per fish value"}`)}</span><span title="${t("tourist")}">${token("tourist", s.tourists, `${"Tourists available this round"}: ${s.tourists}`)}</span>${s.waterCountdown !== null ? `<span title="${t("waterLeft")}">${token("water", s.waterCountdown, `${t("waterLeft")}: ${s.waterCountdown}`)}</span>` : ""}</div>${tradeShips()}</div><div class="map-scroll ${zoom ? "zoomed" : ""}">${boardSvg(s, { player, colorBlind, overview, language: lang, selected, targets, hoverTile: s.phase === "expand" ? tile : null, t })}</div><div class="map-tools">${titled(overview ? "Focus on placed tiles" : "Show full board", icon("overview"), `data-overview aria-pressed="${overview}"`, "icon-button")}${titled(zoom ? t("fit") : t("zoom"), icon(zoom ? "eye" : "zoom"), "data-zoom", "icon-button")}</div>${s.upcoming.length && s.phase !== "expand" ? titled(t("next"), `${s.upcoming.map((id) => `<img src="${assets[TILES[id].art]}" alt="">`).join("")}${icon("zoom", t("next"))}`, "data-upcoming", "upcoming") : ""}${trayHtml}</section></div><section class="players">${s.players.map(playerCard).join("")}</section><footer class="play-footer"><span title="${"Automatic conversion"}">${token("coin", 10)} → ${token("point", 5)}</span>${btn(t("help"), "data-help", "text-button")}</footer>`;
<div class="table">${dock()}<section class="sea-board" style="--ocean:url('${assets.ocean}')"><div class="sea-dashboard"><div class="market-info"><span class="fish-price" title="${esc(marketHelp)}">${icon("fish", marketHelp)} = ${token("coin", s.market, marketHelp)}</span><span title="${t("tourist")}">${token("tourist", s.tourists, `${"Tourists available this round"}: ${s.tourists}`)}</span>${s.waterCountdown !== null ? `<span title="${t("waterLeft")}">${token("water", s.waterCountdown, `${t("waterLeft")}: ${s.waterCountdown}`)}</span>` : ""}</div>${tradeShips()}</div><div class="map-scroll ${zoom ? "zoomed" : ""}">${boardSvg(s, { player, colorBlind, overview, language: lang, selected, targets, hoverTile: s.phase === "expand" ? tile : null, t })}</div><div class="map-tools">${titled(overview ? "Focus on placed tiles" : "Show full board", icon("overview"), `data-overview aria-pressed="${overview}"`, "icon-button")}${titled(zoom ? t("fit") : t("zoom"), icon(zoom ? "eye" : "zoom"), "data-zoom", "icon-button")}</div>${s.upcoming.length && s.phase !== "expand" ? titled(t("next"), `${s.upcoming.map((id) => `<img src="${assets[TILES[id].art]}" alt="">`).join("")}${icon("zoom", t("next"))}`, "data-upcoming", "upcoming") : ""}${trayHtml}</section></div><section class="players">${s.players.map(playerCard).join("")}</section><footer class="play-footer"><span title="${"Automatic conversion"}">${token("coin", 10)} → ${token("point", 5)}</span>${btn(t("help"), "data-help", "text-button")}</footer>`;
observeTray();
const newScroll = play.querySelector(".map-scroll");
if (newScroll) {