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.

6 lines (4 loc) 202 B
import { type Cell } from '@scrabble-solver/types'; export const findCell = (cells: Cell[], x: number, y: number): Cell | undefined => { return cells.find((cell) => cell.x === x && cell.y === y); };