Added animation revealing the word colors
Some checks failed
/ publish (push) Has been cancelled

This commit is contained in:
Leon Mika 2025-03-14 22:00:13 +11:00
parent 1367d99446
commit da4a87eb86
3 changed files with 60 additions and 34 deletions

View file

@ -149,20 +149,6 @@ export class GameController {
let misses = {};
let hits = {};
// if (this._currentWord.length <= 5) {
// if (!this._wordSource.isWord(guess)) {
// hits = {};
// for (let i = 0; i < guess.length; i++) {
// hits[guess[i]] = MARKERS.ATTEMPTED;
// }
//
// return {
// hits: hits,
// guessResult: GUESS_RESULT.FOUL,
// };
// }
// }
for (let i = 0; i < guess.length; i++) {
if (guess[i] == this._currentWord[i]) {
markers[i] = MARKERS.RIGHT_POS;