keyboard, fix clue bugs, length slider

This commit is contained in:
Lynn
2022-01-01 03:04:48 +01:00
parent 15d46d3587
commit 1219991921
10 changed files with 267564 additions and 1242 deletions

View File

@@ -1,4 +1,6 @@
export const wordLength = 5;
import dictionary from "./dictionary.json";
export const dictionarySet: Set<string> = new Set(dictionary);
export function pick<T>(array: Array<T>): T {
return array[Math.floor(array.length * Math.random())];