scrabble-solver
Version:
Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Crossplay, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.
16 lines (12 loc) • 347 B
text/typescript
import { BONUS_WORD } from '@scrabble-solver/constants';
import { Bonus } from './Bonus';
import { type BonusValue } from './BonusValue';
export class WordBonus extends Bonus {
public readonly type = BONUS_WORD;
public get value(): BonusValue {
return {
characterMultiplier: 1,
wordMultiplier: this.multiplier,
};
}
}