keyboard, fix clue bugs, length slider
This commit is contained in:
@@ -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())];
|
||||
|
||||
Reference in New Issue
Block a user