0
0
Fork 0

Make the system increment incorrect on a wrong guess

This commit is contained in:
Oliver-Akins 2023-02-24 08:28:28 -07:00
parent 853ffa9cbb
commit c84a298569

View file

@ -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;
}; };
} }