In this exercise, we'll add some CSS classes to color the background of each cell, based on the results and the correct answer: Inside/src/game-helpers.js, you'll find a helper function,checkGuess. As parameters, it takes a single guess, as well as the correct answer. It returns an...
This means that it is impossible to cheat, the answer is never stored in the browser before the puzzle has been finished. Even looking at the backend source code will not reveal the answer, as the wordlist is shuffled before it is inserted into the database. Public API You can use the...
Filtering out the possible answer list leads to the following statistics: Statistics of the 2nd word characters. When the answer is ULCER. This may not make sense at first because the word does not start with C or B. With 187 words left, this is where the details of the scoring start ...
Filtering out the possible answer list leads to the following statistics: Statistics of the 2nd word characters. When the answer is ULCER. This may not make sense at first because the word does not start with C or B. With 187 words left, this is where the details of the sco...
I manually removed proper nouns as I found them, and truncated the list to the first (i.e., most common) 1000 or so words. The complete wordlist (all valid guess words) was generated using: import json # https://github.com/barrust/pyspellchecker/blob/master/spellchecker/resources/en....
As parameters, it takes a single guess, as well as the correct answer. It returns an array that contains the status for each letter. For example: checkGuess('WHALE', 'LEARN'); /* Returns: [ { letter: 'W', status: 'incorrect' }, { letter: 'H', status: 'incorrect' }, { ...