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.

13 lines (10 loc) 330 B
export enum Game { Kelimelik = 'kelimelik', LetterLeague = 'letter-league', Literaki = 'literaki', Scrabble = 'scrabble', ScrabbleDuel = 'scrabble-duel', SuperScrabble = 'super-scrabble', } const games = Object.values(Game); export const isGame = (locale: unknown): locale is Game => games.includes(locale as Game);