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.

21 lines (20 loc) 666 B
import { type Board } from './Board'; import { type Cell } from './Cell'; import { type Config } from './Config'; import { type PatternJson } from './PatternJson'; export declare class Pattern { readonly board: Board; readonly cells: Cell[]; constructor(board: Board, cells: Cell[]); canBePlaced(config: Config): boolean; clone(): Pattern; collides(): boolean; getIndexOfFirstCellWithoutTile(): number; getEmptyCellsCount(): number; goesThroughBoardCenter(): boolean; hasAtLeast1EmptyCell(): boolean; hasAtLeast1NonEmptyCell(): boolean; getCollisions(): Pattern[]; toJson(): PatternJson; toString(): string; }