UNPKG

scrabble-solver

Version:

Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.

23 lines (22 loc) 787 B
import { type BONUS_CHARACTER, type BONUS_WORD } from '@scrabble-solver/constants'; import { type BonusJson } from './BonusJson'; import { type BonusValue } from './BonusValue'; import { type Cell } from './Cell'; import { type Config } from './Config'; export declare abstract class Bonus { readonly multiplier: number; readonly score: number | undefined; abstract readonly type: typeof BONUS_CHARACTER | typeof BONUS_WORD; readonly x: number; readonly y: number; constructor({ multiplier, score, x, y }: { multiplier: number; score?: number; x: number; y: number; }); canApply(_config: Config, cell: Cell): boolean; matchesCellCoordinates(cell: Cell): boolean; toJson(): BonusJson; get value(): BonusValue; }