We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b460ae commit d5c61adCopy full SHA for d5c61ad
1 file changed
src/ps/games/scrabble/index.ts
@@ -263,6 +263,7 @@ export class Scrabble extends Game<State> {
263
const turn = this.turn!;
264
const player = this.players[turn];
265
if (!player) this.throw();
266
+ if (this.state.bag.length < RACK_SIZE) this.throw('GAME.SCRABBLE.BAG_SIZE', { amount: this.state.bag.length });
267
if (!letterList || letterList.length === 0) this.throw();
268
269
const letters = letterList
@@ -272,8 +273,6 @@ export class Scrabble extends Game<State> {
272
273
if (!letters.length) this.throw();
274
const letterCount = letters.count();
275
- if (this.state.bag.length < letters.length) this.throw('GAME.SCRABBLE.BAG_SIZE', { amount: this.state.bag.length });
276
-
277
const rack = this.state.racks[turn];
278
const rackCount = rack.count();
279
0 commit comments