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.
14 lines (11 loc) • 357 B
text/typescript
export enum Game {
Crossplay = 'crossplay',
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);