it's a game!

This commit is contained in:
Lynn
2021-12-31 02:43:09 +01:00
parent 277ebd009e
commit 15d46d3587
8 changed files with 10281 additions and 47 deletions

5
src/util.ts Normal file
View File

@@ -0,0 +1,5 @@
export const wordLength = 5;
export function pick<T>(array: Array<T>): T {
return array[Math.floor(array.length * Math.random())];
}