Merge branch 'develop'
This commit is contained in:
commit
26df4881ea
3 changed files with 10665 additions and 2 deletions
|
@ -24,7 +24,7 @@
|
|||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>React App</title>
|
||||
<title>Wordle Clone</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
|
|
10659
src/constants/validGuesses.ts
Normal file
10659
src/constants/validGuesses.ts
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,7 +1,11 @@
|
|||
import { WORDS } from "../constants/wordlist";
|
||||
import { VALIDGUESSES } from "../constants/validGuesses";
|
||||
|
||||
export const isWordInWordList = (word: string) => {
|
||||
return WORDS.includes(word.toLowerCase());
|
||||
return (
|
||||
WORDS.includes(word.toLowerCase()) ||
|
||||
VALIDGUESSES.includes(word.toLowerCase())
|
||||
);
|
||||
};
|
||||
|
||||
export const isWinningWord = (word: string) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue