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.
|
// 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] = {
|
static const char _possible_words[][WORDLE_LENGTH + 1] = {
|
||||||
"AALII", "AARTI", "ACAIS", "ACARI", "ACCAS", "ACERS", "ACETA", "ACHAR", "ACHES",
|
"AALII", "AARTI", "ACAIS", "ACARI", "ACCAS", "ACERS", "ACETA", "ACHAR", "ACHES",
|
||||||
"ACHOO", "ACINI", "ACNES", "ACRES", "ACROS", "ACTIN", "ACTON", "AECIA", "AEONS",
|
"ACHOO", "ACINI", "ACNES", "ACRES", "ACROS", "ACTIN", "ACTON", "AECIA", "AEONS",
|
||||||
|
@ -1171,8 +1171,8 @@ def print_valid_words(letters=alphabet):
|
|||||||
print("")
|
print("")
|
||||||
print(f"// From: {source_link}")
|
print(f"// From: {source_link}")
|
||||||
print(f"// Number of words found: {len(valid_words)}")
|
print(f"// Number of words found: {len(valid_words)}")
|
||||||
i = 0
|
|
||||||
print("static const char _valid_words[][WORDLE_LENGTH + 1] = {")
|
print("static const char _valid_words[][WORDLE_LENGTH + 1] = {")
|
||||||
|
i = 0
|
||||||
while i < len(valid_words):
|
while i < len(valid_words):
|
||||||
print(" ", end='')
|
print(" ", end='')
|
||||||
for _ in range(min(items_per_row, len(valid_words)-i)):
|
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)
|
possible_words = capitalize_all_and_remove_duplicates(possible_words)
|
||||||
print("};")
|
print("};")
|
||||||
print("\n// These are words that'll never be used, but still need to be in the dictionary for guesses.")
|
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] = {")
|
print("static const char _possible_words[][WORDLE_LENGTH + 1] = {")
|
||||||
i = 0
|
i = 0
|
||||||
while i < len(possible_words):
|
while i < len(possible_words):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user