This commit is contained in:
parent
1367d99446
commit
da4a87eb86
3 changed files with 60 additions and 34 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue