]> git.earman.xyz Git - sensor-watch.git/commitdiff
Readding comment showing count of possible words.
authorDavid Volovskiy <devolov@gmail.com>
Sat, 24 Aug 2024 14:36:38 +0000 (10:36 -0400)
committerDavid Volovskiy <devolov@gmail.com>
Tue, 3 Sep 2024 20:11:54 +0000 (16:11 -0400)
movement/watch_faces/complication/wordle_face.c
utils/wordle_face/wordle_list.py

index 260860b632d8c9bcc1be529b40437819373d4cad..7396a174f0d522cf8c4e6fba2264ab83b09778a1 100644 (file)
@@ -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", 
index fec404b38a1a38fec2d5cac0ff3a590ab0cf5ebe..d951bac998ed1d5f236307b82629e1862027b9a8 100644 (file)
@@ -1171,8 +1171,8 @@ def print_valid_words(letters=alphabet):
     print("")\r
     print(f"// From: {source_link}")\r
     print(f"// Number of words found: {len(valid_words)}")\r
-    i = 0\r
     print("static const char _valid_words[][WORDLE_LENGTH + 1] = {")\r
+    i = 0\r
     while i < len(valid_words):\r
         print("    ", end='')\r
         for _ in range(min(items_per_row, len(valid_words)-i)):\r
@@ -1184,6 +1184,7 @@ def print_valid_words(letters=alphabet):
     possible_words = capitalize_all_and_remove_duplicates(possible_words)\r
     print("};")\r
     print("\n// These are words that'll never be used, but still need to be in the dictionary for guesses.")\r
+    print(f"// Number of words found: {len(possible_words)}")\r
     print("static const char _possible_words[][WORDLE_LENGTH + 1] = {")\r
     i = 0\r
     while i < len(possible_words):\r