From 1ad922a951fc128d8703961d2bce23d803b8b838 Mon Sep 17 00:00:00 2001 From: Audiino <121476415+Audiino@users.noreply.github.com> Date: Sat, 22 Nov 2025 00:29:01 +0800 Subject: [PATCH] games: Change Lights Out valid board size to be 2x2 to 15x15 --- src/i18n/languages/english.ts | 2 +- src/i18n/languages/french.ts | 2 +- src/i18n/languages/hindi.ts | 2 +- src/i18n/languages/portuguese.ts | 2 +- src/ps/games/lightsout/index.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/i18n/languages/english.ts b/src/i18n/languages/english.ts index d3d2ee8e..ab0a0b2e 100644 --- a/src/i18n/languages/english.ts +++ b/src/i18n/languages/english.ts @@ -111,7 +111,7 @@ export default { }, LIGHTS_OUT: { - INVALID_SIZE: 'Lights Out may only be from 3x5 to 9x10.', + INVALID_SIZE: 'Lights Out may only be from 2x2 to 15x15.', }, MASTERMIND: { ENDED: 'The game of Mastermind was ended for {{player}}.', diff --git a/src/i18n/languages/french.ts b/src/i18n/languages/french.ts index 08a8a82b..62b13f64 100644 --- a/src/i18n/languages/french.ts +++ b/src/i18n/languages/french.ts @@ -109,7 +109,7 @@ export default { }, LIGHTS_OUT: { - INVALID_SIZE: 'Lights Out doit être entre 3x5 et 9x10.', + INVALID_SIZE: 'Lights Out doit être entre 2x2 et 15x15.', }, MASTERMIND: { ENDED: 'La partie de Mastermind a été arrêtée pour {{player}}.', diff --git a/src/i18n/languages/hindi.ts b/src/i18n/languages/hindi.ts index 871ae9dc..d153b102 100644 --- a/src/i18n/languages/hindi.ts +++ b/src/i18n/languages/hindi.ts @@ -92,7 +92,7 @@ export default { PUBLIC: '{{user}} ne {{game}} [{{id}}] mein {{time}} se move nahi kiya...', }, LIGHTS_OUT: { - INVALID_SIZE: 'Lights Out ka size sirf 3x5 se 9x10 ke beech ho sakta hai.', + INVALID_SIZE: 'Lights Out ka size sirf 2x2 se 15x15 ke beech ho sakta hai.', }, MASTERMIND: { ENDED: '{{player}} ke liye Mastermind ka game khatam kiya gaya.', diff --git a/src/i18n/languages/portuguese.ts b/src/i18n/languages/portuguese.ts index 94b3a01e..c6c207d0 100644 --- a/src/i18n/languages/portuguese.ts +++ b/src/i18n/languages/portuguese.ts @@ -109,7 +109,7 @@ export default { }, LIGHTS_OUT: { - INVALID_SIZE: 'Lights Out só pode ser de 3x5 a 9x10.', + INVALID_SIZE: 'Lights Out só pode ser de 2x2 a 15x15.', }, MASTERMIND: { ENDED: 'O jogo de Mastermind foi encerrado para {{player}}.', diff --git a/src/ps/games/lightsout/index.ts b/src/ps/games/lightsout/index.ts index 79862df8..373ca7d0 100644 --- a/src/ps/games/lightsout/index.ts +++ b/src/ps/games/lightsout/index.ts @@ -27,7 +27,7 @@ export class LightsOut extends BaseGame { this.size = (passedSize ?? [5, 5]).reverse() as [number, number]; // more intuitive to have width x height than X x Y this.state.board = createGrid(...this.size, () => false); - if (this.size.some(size => size < 3 || size > 10) || this.size[0] * this.size[1] > 90 || this.size[0] * this.size[1] < 15) + if (this.size.some(size => size < 2 || size > 15)) this.throw('GAME.LIGHTS_OUT.INVALID_SIZE'); super.persist(ctx);