Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/i18n/languages/english.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}}.',
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/languages/french.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}}.',
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/languages/hindi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/languages/portuguese.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}}.',
Expand Down
2 changes: 1 addition & 1 deletion src/ps/games/lightsout/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class LightsOut extends BaseGame<State> {
this.size = (passedSize ?? [5, 5]).reverse() as [number, number]; // more intuitive to have width x height than X x Y
this.state.board = createGrid<boolean>(...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);
Expand Down