Skip to content

Commit

Permalink
if player gets word correct the first time, they get double
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Smith committed Aug 3, 2023
1 parent d6c22e3 commit 7ad5103
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/functionality.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ function solve() {
for (let i = 0; i < failedRequests.length; i++) {
percentage = percentage - 10;
}
if (percentage === 100) {
percentage = 200;
}

document.querySelector("#winLoseStatus[role='alert']").classList.remove("hide");
if (document.querySelector("input[name='solveWord']").value.toLowerCase().replaceAll(" ", "-") === wordPrep.toLowerCase().replaceAll(" ", "-")) {
Expand Down

0 comments on commit 7ad5103

Please sign in to comment.