diff --git a/index.html b/index.html
index 0f44d88..b5d1d98 100644
--- a/index.html
+++ b/index.html
@@ -19,11 +19,12 @@
-
+
+
WordleBot
@@ -78,7 +79,7 @@
-
+
diff --git a/js/class.js b/js/class.js
index 21ab110..7297808 100644
--- a/js/class.js
+++ b/js/class.js
@@ -624,9 +624,7 @@ function antiRecursion(word, difference, wrong_letters, diff_list, i) {
}
if (wrong_letters.includes(word.charAt(i)) && difference.charAt(i) != CORRECT) {
- // if (difference.charAt(i) != CORRECT) {
antiRecursion(word, replaceAt(difference, CORRECT, i), wrong_letters, diff_list, i+1);
- // }
if (difference.charAt(i) != INCORRECT) {
antiRecursion(word, replaceAt(difference, INCORRECT, i), wrong_letters, diff_list, i+1);
diff --git a/js/main.js b/js/main.js
index 0787508..21c82b9 100644
--- a/js/main.js
+++ b/js/main.js
@@ -873,17 +873,6 @@ function couldBeAnswer(guess) {
return true;
}
-function replace(old_string, old_char, new_char) {
- let regex = new RegExp(old_char,'g'); // correct way
- let new_string = old_string.replace(regex, new_char); // it works
-
- return new_string;
-}
-
-function replaceAt(old_string, char, index) {
- old_string = old_string.slice(0, index) + char + old_string.slice(index+1);
- return old_string;
-}
/* SORT FUNCTIONS */
// sorts the list based on which words have the most common letters
diff --git a/js/setup.js b/js/setup.js
index e261a03..9bee2b4 100644
--- a/js/setup.js
+++ b/js/setup.js
@@ -177,59 +177,12 @@ function createMaxGuesses(div) {
}
const EXAMPLE_LIST =
-// {
[
- // "Wordle": [
{word: 'BLOKE', score: '2.188 guesses left', wrong: '96.77% solve rate'},
{word: 'YOLKS', score: '2.250 guesses left'},
{word: 'KOELS', score: '2.250 guesses left'},
{word: 'KYLOE', score: '2.250 guesses left'}
- // ]
- // ,
- // "Woodle": [
- // {word: 'LEAST', score: '3.652 guesses left', wrong: '96.77% solve rate'},
- // {word: 'STALE', score: '3.661 guesses left'},
- // {word: 'SPATE', score: '3.665 guesses left'},
- // {word: 'BEARD', score: '3.674 guesses left'}
- // ],
- // "W-Peaks": [
- // {word: 'THREE', score: '2.111 guesses left', wrong: '96.77% solve rate'},
- // {word: 'TIRED', score: '2.222 guesses left'},
- // {word: 'TOPEE', score: '2.222 guesses left'},
- // {word: 'TOPEK', score: '2.222 guesses left'}
- // ],
- // "Antiwordle": [
- // {word: 'TAZZA', score: '9.000 guesses left', wrong: '96.77% solve rate'},
- // {word: 'THUJA', score: '8.813 guesses left'},
- // {word: 'TAPPA', score: '8.813 guesses left'},
- // {word: 'TAXED', score: '8.500 guesses left'}
- // ],
- // "Thirdle": [
- // {word: 'LEAST', score: '3.652 guesses left', wrong: '96.77% solve rate'},
- // {word: 'STALE', score: '3.661 guesses left'},
- // {word: 'SPATE', score: '3.665 guesses left'},
- // {word: 'BEARD', score: '3.674 guesses left'}
- // ],
- // "Xordle": [
- // {word: 'SOLDE', score: '3.227 guesses left', wrong: '96.77% solve rate'},
- // {word: 'POULE', score: '3.228 guesses left'},
- // {word: 'SOCLE', score: '3.238 guesses left'},
- // {word: 'SLOPE', score: '3.255 guesses left'},
- // ],
- // "Fibble": [
- // {word: "PALET", score: '2.932 guesses left', wrong: '96.77% solve rate'},
- // {word: "SALET", score: "2.935 guesses left"},
- // {word: "LACET", score: "2.952 guesses left"},
- // {word: "CAPLE", score: "2.952 guesses left"}
- // ],
- // "Hardle": [
- // {word: "BEALS", score: '2.500 guesses left', wrong: '96.77% solve rate'},
- // {word: "BELTS", score: "2.519 guesses left"},
- // {word: "SOCLE", score: "2.537 guesses left"},
- // {word: "HEALS", score: "2.537 guesses left"}
- // ]
-// }
-]
+ ];
function createExample() {
let example_row = createRow('TRAIN', 'dummy');