We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is proposed that guessed words be stored in the app's local storage and not used as challenges anymore. Code changes to Game.tsx:
var usedWords = JSON.parse(localStorage.getItem('usedWords') || '[]'); function randomTarget(wordLength: number): string { const eligible = targets.filter((word) => word.length === wordLength && !(usedWords.includes(word))); . . . const onKey = (key: string) => { . . . const saveUsedWord = (word: string) => { usedWords.push(target); localStorage.setItem('usedWords', JSON.stringify(usedWords)); }; if (currentGuess === target) { setHint(gameOver("won")); setGameState(GameState.Won); saveUsedWord(target); } . . .
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It is proposed that guessed words be stored in the app's local storage and not used as challenges anymore. Code changes to Game.tsx:
The text was updated successfully, but these errors were encountered: