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.

14 lines (10 loc) 473 B
import { getConfig } from '@scrabble-solver/configs'; import { Board, Game, Locale } from '@scrabble-solver/types'; import { generatePatterns } from './generatePatterns'; describe('generatePatterns', () => { it('Generates all patterns for an empty board', () => { const config = getConfig(Game.Scrabble, Locale.EN_US); const board = Board.create(config.boardWidth, config.boardHeight); expect(generatePatterns(config, board).length).toEqual(54); }); });