|
5 | 5 | //! exactly as they would around a physical tray. What the app adds is the |
6 | 6 | //! shake, the clock, and the part every table wants when the pens go down — |
7 | 7 | //! checking whether a word is real. Validity is answered from an embedded |
8 | | -//! SOWPODS word list, misspellings get near-miss suggestions, and definitions |
| 8 | +//! ENABLE word list, misspellings get near-miss suggestions, and definitions |
9 | 9 | //! come from the runtime's offline dictionaries when the owner has installed |
10 | 10 | //! any. |
11 | 11 | //! |
@@ -57,10 +57,10 @@ const MIN_WORD_LETTERS: usize = 3; |
57 | 57 | /// it tappable can never disagree with the words it covers. |
58 | 58 | const END_EARLY_LABEL: &str = "End the game early"; |
59 | 59 |
|
60 | | -/// Every word SOWPODS accepts, one per line, embedded so the answer needs no |
| 60 | +/// Every word ENABLE accepts, one per line, embedded so the answer needs no |
61 | 61 | /// radio. Parsed once, on the first lookup rather than at launch, so starting |
62 | 62 | /// a game never waits on it. |
63 | | -const WORD_LIST: &str = include_str!("../words/sowpods.txt"); |
| 63 | +const WORD_LIST: &str = include_str!("../words/enable1.txt"); |
64 | 64 |
|
65 | 65 | fn words() -> &'static HashSet<&'static str> { |
66 | 66 | static WORDS: OnceLock<HashSet<&'static str>> = OnceLock::new(); |
@@ -977,7 +977,7 @@ mod tests { |
977 | 977 |
|
978 | 978 | #[test] |
979 | 979 | fn the_word_list_answers_like_the_table_expects() { |
980 | | - assert!(verify("qi"), "the two-letter Scrabble staple is in SOWPODS"); |
| 980 | + assert!(verify("aa"), "the two-letter Scrabble staple is in ENABLE"); |
981 | 981 | assert!(verify("AARDVARK")); |
982 | 982 | assert!(verify("aardvark"), "case must not matter"); |
983 | 983 | assert!(!verify("XQZZY")); |
|
0 commit comments