diff --git a/src/i18n/languages/english.ts b/src/i18n/languages/english.ts index d3d2ee8..ab0a0b2 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 08a8a82..62b13f6 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 871ae9d..d153b10 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 94b3a01..c6c207d 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 79862df..373ca7d 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);