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.

9 lines (6 loc) 309 B
import { type Game, type Locale } from '@scrabble-solver/types'; import * as languages from './languages'; export const hasConfig = (game: Game, locale: Locale): boolean => { const configs = Object.values(languages); return configs.some((config) => config.game === game && config.locale === locale); };