Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
Bonus time is no longer given when an already found letter was colored green again
  • Loading branch information
Gurge44 committed Sep 14, 2023
1 parent 41ccf4f commit b4d0aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
document.getElementById("error").innerHTML = "Loading....";
let version = "v3.0.7";
let version = "v3.1.0";
document.getElementById("title").innerText = "Customized Wordle " + version;
toastr.options.progressBar = true;

Expand Down Expand Up @@ -681,7 +681,7 @@ function checkGuess() {
} else {
if (currentGuess[i] === rightGuess[i]) {
letterColor = greenColor;
if (lettersToBeFound.includes(currentGuess[i]) && mainTimerRunning) {
if (lettersToBeFound.includes(currentGuess[i]) && indexesToBeFound.includes(i) && mainTimerRunning) {
timeChange += Number(greenTimeBonus);
}
let newArray = [];
Expand Down

0 comments on commit b4d0aa6

Please sign in to comment.