Make the system increment incorrect on a wrong guess
This commit is contained in:
parent
853ffa9cbb
commit
c84a298569
1 changed files with 2 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ const route: ServerRoute = {
|
||||||
if (data.key[guess] != null) {
|
if (data.key[guess] != null) {
|
||||||
data.current = addLetter(data.key, data.current, guess);
|
data.current = addLetter(data.key, data.current, guess);
|
||||||
won = data.current == data.solution;
|
won = data.current == data.solution;
|
||||||
|
} else {
|
||||||
|
data.incorrect += config.game.penalties.guess;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue