0
0
Fork 0

Reset the guessed letters when starting a new game

This commit is contained in:
Oliver 2023-08-03 08:56:42 -06:00 committed by GitHub
parent aec13c1cee
commit 21f08cecab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,7 @@ const route: ServerRoute = {
data.solution = spaced; data.solution = spaced;
data.incorrect = 0; data.incorrect = 0;
data.key = convertToKey(spaced); data.key = convertToKey(spaced);
data.guesses = [];
// Tell the overlay(s) to start a new game // Tell the overlay(s) to start a new game
request.server.app.io.to(channel).emit(`state`, { request.server.app.io.to(channel).emit(`state`, {