mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
Readding comment showing count of possible words.
This commit is contained in:
parent
099f78443e
commit
1d2fb20e99
|
@ -86,6 +86,7 @@ static const char _valid_words[][WORDLE_LENGTH + 1] = {
|
|||
};
|
||||
|
||||
// These are words that'll never be used, but still need to be in the dictionary for guesses.
|
||||
// Number of words found: 1898
|
||||
static const char _possible_words[][WORDLE_LENGTH + 1] = {
|
||||
"AALII", "AARTI", "ACAIS", "ACARI", "ACCAS", "ACERS", "ACETA", "ACHAR", "ACHES",
|
||||
"ACHOO", "ACINI", "ACNES", "ACRES", "ACROS", "ACTIN", "ACTON", "AECIA", "AEONS",
|
||||
|
|
|
@ -1171,8 +1171,8 @@ def print_valid_words(letters=alphabet):
|
|||
print("")
|
||||
print(f"// From: {source_link}")
|
||||
print(f"// Number of words found: {len(valid_words)}")
|
||||
i = 0
|
||||
print("static const char _valid_words[][WORDLE_LENGTH + 1] = {")
|
||||
i = 0
|
||||
while i < len(valid_words):
|
||||
print(" ", end='')
|
||||
for _ in range(min(items_per_row, len(valid_words)-i)):
|
||||
|
@ -1184,6 +1184,7 @@ def print_valid_words(letters=alphabet):
|
|||
possible_words = capitalize_all_and_remove_duplicates(possible_words)
|
||||
print("};")
|
||||
print("\n// These are words that'll never be used, but still need to be in the dictionary for guesses.")
|
||||
print(f"// Number of words found: {len(possible_words)}")
|
||||
print("static const char _possible_words[][WORDLE_LENGTH + 1] = {")
|
||||
i = 0
|
||||
while i < len(possible_words):
|
||||
|
|
Loading…
Reference in a new issue