diff --git a/js/functionality.js b/js/functionality.js index 3ee740b..9ceab5b 100644 --- a/js/functionality.js +++ b/js/functionality.js @@ -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(" ", "-")) {