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.

13 lines (7 loc) 462 B
import { getConfig } from '@scrabble-solver/configs'; import { localStorage } from '../localStorage'; import { settingsInitialState } from '../settings'; import type { RackState } from './types'; const defaultConfig = getConfig(settingsInitialState.game, settingsInitialState.locale); export const rackDefaultState: RackState = Array(defaultConfig.rackSize).fill(null); export const rackInitialState: RackState = localStorage.getRack() ?? rackDefaultState;