UNPKG

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.

32 lines (31 loc) 918 B
import { Cell } from './Cell'; import { type ResultJson } from './ResultJson'; import { type Tile } from './Tile'; type Collision = Cell[]; export declare class Result { static fromJson: (json: ResultJson) => Result; readonly blanksCount: number; readonly cells: Cell[]; readonly collisions: Collision[]; readonly consonantsCount: number; readonly id: number; readonly length: number; readonly points: number; readonly pointsRatio: number; readonly tiles: Tile[]; readonly tilesCount: number; readonly vowelsCount: number; readonly word: string; readonly words: string[]; readonly wordsCount: number; constructor({ cells, id, collisions, points, }: { cells: Cell[]; id: number; collisions: Collision[]; points: number; }); toJson(): ResultJson; isHorizontal(): boolean; isVertical(): boolean; } export {};