diff --git a/app/src/ui/match-texts.ts b/app/src/ui/match-texts.ts index 4536050..5bae1ca 100644 --- a/app/src/ui/match-texts.ts +++ b/app/src/ui/match-texts.ts @@ -57,7 +57,7 @@ export const MATCH_TEXTS = { advice: "Conseil du maître", adviceDetail: "Une ligne après chacun de vos coups", startGame: "Commencer la partie", - startMatch: (n: number) => `Commencer le match en ${n} points`, + startMatch: "Commencer le match", kept: "Vos choix sont gardés pour la prochaine fois.", // Score du match sur l'écran de jeu diff --git a/app/src/ui/new-game-view.ts b/app/src/ui/new-game-view.ts index 9caa596..1551d2e 100644 --- a/app/src/ui/new-game-view.ts +++ b/app/src/ui/new-game-view.ts @@ -200,9 +200,7 @@ export function createNewGameView(options: NewGameViewOptions): NewGameView { levelName.textContent = MATCH_TEXTS.levels[s.level].name; levelText.textContent = MATCH_TEXTS.levels[s.level].text; advice.setAttribute("aria-checked", String(s.masterAdvice)); - start.textContent = isMatch - ? MATCH_TEXTS.startMatch(s.matchLength) - : MATCH_TEXTS.startGame; + start.textContent = isMatch ? MATCH_TEXTS.startMatch : MATCH_TEXTS.startGame; start.disabled = busy; }, focus() { diff --git a/docs/identite/charte/ecrans-etape-1.md b/docs/identite/charte/ecrans-etape-1.md index a22b8b6..07a5e63 100644 --- a/docs/identite/charte/ecrans-etape-1.md +++ b/docs/identite/charte/ecrans-etape-1.md @@ -38,8 +38,8 @@ Ouvert depuis le menu, l'accueil et la fin de partie. Une seule page, sans 3. **Pendant la partie** : interrupteur « Conseil du maître », sous-titre « Une ligne après chacun de vos coups ». 4. **Barre d'action collée en bas** : un seul bouton principal, qui dit ce - qu'il lance (« Commencer la partie » ou « Commencer le match en 5 - points »), et la mention « Vos choix sont gardés pour la prochaine fois. ». + qu'il lance (« Commencer la partie » ou « Commencer le match » ; choix + de Pierre du 2026-11-11, la longueur se lit déjà sur le bouton choisi), et la mention « Vos choix sont gardés pour la prochaine fois. ». Par défaut : partie libre, Intermédiaire, conseil activé. Fermer (croix en haut à gauche, ou retour du téléphone) ne change rien à la partie en cours. diff --git a/docs/scenarios/jouer-un-match.feature b/docs/scenarios/jouer-un-match.feature index 37e85ab..9eb3583 100644 --- a/docs/scenarios/jouer-un-match.feature +++ b/docs/scenarios/jouer-un-match.feature @@ -4,7 +4,9 @@ Fonctionnalité: Choisir sa partie et jouer un match L'écran « Nouvelle partie » s'ouvre depuis le menu, l'accueil et, à la fin d'une partie, par « Changer les réglages ». Vous y choisissez une partie libre ou un match en 3, 5, 7 ou 11 points, le niveau de l'ordinateur, et si le maître commente vos - coups. Vos choix sont gardés pour la prochaine fois. + coups. Vos choix sont gardés pour la prochaine fois. « Commencer la + partie » (ou « Commencer le match ») lance aussitôt la partie, sur le + plateau, même juste après le bilan d'une partie finie. Scénario: Comment choisir le niveau de l'ordinateur ? Six niveaux, du Débutant, qui laisse passer des occasions, au Champion, diff --git a/tests/browser/match.mjs b/tests/browser/match.mjs index 55cafde..120bef8 100644 --- a/tests/browser/match.mjs +++ b/tests/browser/match.mjs @@ -194,7 +194,7 @@ await page.click("#new-game-match"); await page.click("#new-game-length-3"); await page.click("#new-game-level-beginner"); s = await screen(); -check(s.match === "true" && s.lengthsShown && !s.jacobyShown && s.start === "Commencer le match en 3 points", +check(s.match === "true" && s.lengthsShown && !s.jacobyShown && s.start === "Commencer le match", `match en 3 points : ${JSON.stringify(s)}`); check(s.level === "beginner" && s.reached === 1 && s.name === "Débutant", `Débutant : ${JSON.stringify(s)}`); check((await page.getAttribute("#new-game-crawford a", "href")) === "#/glossaire/regle-de-crawford", @@ -254,7 +254,7 @@ await page.click("#menu-new-game"); await until("écran « Nouvelle partie »", () => location.hash === "#/nouvelle-partie" && !document.getElementById("new-game").hidden); s = await screen(); -check(s.match === "true" && s.level === "beginner" && s.start === "Commencer le match en 3 points", +check(s.match === "true" && s.level === "beginner" && s.start === "Commencer le match", `choix retrouvés : ${JSON.stringify(s)}`); await page.click("#new-game-start"); await until("match commencé", () => location.hash === "#/" && !document.body.classList.contains("busy"));