Skip to content

Commit b0c9ba7

Browse files
authored
games: Change Lights Out valid board size to be 2x2 to 15x15 (#99)
1 parent cc64aba commit b0c9ba7

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/i18n/languages/english.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default {
111111
},
112112

113113
LIGHTS_OUT: {
114-
INVALID_SIZE: 'Lights Out may only be from 3x5 to 9x10.',
114+
INVALID_SIZE: 'Lights Out may only be from 2x2 to 15x15.',
115115
},
116116
MASTERMIND: {
117117
ENDED: 'The game of Mastermind was ended for {{player}}.',

src/i18n/languages/french.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default {
109109
},
110110

111111
LIGHTS_OUT: {
112-
INVALID_SIZE: 'Lights Out doit être entre 3x5 et 9x10.',
112+
INVALID_SIZE: 'Lights Out doit être entre 2x2 et 15x15.',
113113
},
114114
MASTERMIND: {
115115
ENDED: 'La partie de Mastermind a été arrêtée pour {{player}}.',

src/i18n/languages/hindi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default {
9292
PUBLIC: '{{user}} ne {{game}} [{{id}}] mein {{time}} se move nahi kiya...',
9393
},
9494
LIGHTS_OUT: {
95-
INVALID_SIZE: 'Lights Out ka size sirf 3x5 se 9x10 ke beech ho sakta hai.',
95+
INVALID_SIZE: 'Lights Out ka size sirf 2x2 se 15x15 ke beech ho sakta hai.',
9696
},
9797
MASTERMIND: {
9898
ENDED: '{{player}} ke liye Mastermind ka game khatam kiya gaya.',

src/i18n/languages/portuguese.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default {
109109
},
110110

111111
LIGHTS_OUT: {
112-
INVALID_SIZE: 'Lights Out só pode ser de 3x5 a 9x10.',
112+
INVALID_SIZE: 'Lights Out só pode ser de 2x2 a 15x15.',
113113
},
114114
MASTERMIND: {
115115
ENDED: 'O jogo de Mastermind foi encerrado para {{player}}.',

src/ps/games/lightsout/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class LightsOut extends BaseGame<State> {
2727
this.size = (passedSize ?? [5, 5]).reverse() as [number, number]; // more intuitive to have width x height than X x Y
2828
this.state.board = createGrid<boolean>(...this.size, () => false);
2929

30-
if (this.size.some(size => size < 3 || size > 10) || this.size[0] * this.size[1] > 90 || this.size[0] * this.size[1] < 15)
30+
if (this.size.some(size => size < 2 || size > 15))
3131
this.throw('GAME.LIGHTS_OUT.INVALID_SIZE');
3232

3333
super.persist(ctx);

0 commit comments

Comments
 (0)