Name change in python script

This commit is contained in:
David Volovskiy 2024-08-25 10:12:08 -04:00
parent 1b887aea2b
commit fdff6f581a

View file

@ -1163,8 +1163,8 @@ def print_valid_words(letters=alphabet):
print("#define WORDLE_LENGTH 5") print("#define WORDLE_LENGTH 5")
print("#endif") print("#endif")
print("\n#ifndef USE_RANDOM_GUESS") print("\n#ifndef WORDLE_USE_RANDOM_GUESS")
print("#define USE_RANDOM_GUESS 2") print("#define WORDLE_USE_RANDOM_GUESS 2")
print("#endif\n") print("#endif\n")
items_per_row = 9 items_per_row = 9
@ -1197,7 +1197,7 @@ def print_valid_words(letters=alphabet):
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(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] = {")
print("#if !ALLOW_NON_WORD_AND_REPEAT_GUESSES") print("#if !WORDLE_ALLOW_NON_WORD_AND_REPEAT_GUESSES")
i = 0 i = 0
while i < len(possible_words): while i < len(possible_words):
print(" ", end='') print(" ", end='')
@ -1208,9 +1208,9 @@ def print_valid_words(letters=alphabet):
print("#endif") print("#endif")
print("};\n") print("};\n")
print("#if (USE_RANDOM_GUESS == 2)") print("#if (WORDLE_USE_RANDOM_GUESS == 2)")
print(f"static const uint16_t _num_random_guess_words = {num_uniq}; // The _valid_words array begins with this many words where each letter is different.") print(f"static const uint16_t _num_random_guess_words = {num_uniq}; // The _valid_words array begins with this many words where each letter is different.")
print("#elif (USE_RANDOM_GUESS == 1)") print("#elif (WORDLE_USE_RANDOM_GUESS == 1)")
print("static const uint16_t _num_random_guess_words = _num_words;") print("static const uint16_t _num_random_guess_words = _num_words;")
print("#endif") print("#endif")
print("\n#endif // WORDLE_FACE_DICT_H_") print("\n#endif // WORDLE_FACE_DICT_H_")