Skip to content

Commit 86ad084

Browse files
committed
Algorithm changes + new file for word list
1 parent 3ddfb3a commit 86ad084

File tree

2 files changed

+2317
-6
lines changed

2 files changed

+2317
-6
lines changed

wordle_solver/wordle_solver.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# https://github.com/dwyl/english-words for the list of words
22

3-
from audioop import add
4-
from operator import contains
5-
from re import L
6-
import string
7-
from typing import Set
83
from selenium import webdriver
94
from selenium.webdriver.common.by import By
105
from selenium.webdriver.firefox.service import Service as FirefoxService
@@ -88,7 +83,8 @@ def check_match(finder_word_letter, possible_word_letter):
8883

8984
# From the basic list of words, return all the words with 5 characters.
9085
def get_list_of_words():
91-
list_of_words = open("words_alpha.txt", "r").read().strip().splitlines()
86+
# list_of_words = open("words_alpha.txt", "r").read().strip().splitlines()
87+
list_of_words = open("words_alpha_2.txt", "r").read().strip().splitlines()
9288
list_of_words = list(filter(check_word_length, list_of_words))
9389

9490
return list_of_words

0 commit comments

Comments
 (0)