in reply to A Word Game (Update 3)
I was unfortunate enough to randomly get a non-word from my /usr/share/dict/words file:
I added a grep to only allow words with a vowel (or "y"):fldxt
I found this out by adding an option to print the current word at the end:@dict{ map uc, grep /[aeiouy]/, map /^([a-z]{5})$/, <$FH> } = ();
print "\n Answer = $curr_word\n" if @ARGV;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A Word Game
by choroba (Cardinal) on Feb 09, 2022 at 21:28 UTC | |
|
Re^2: A Word Game
by LanX (Saint) on Feb 09, 2022 at 20:42 UTC | |
by jdporter (Paladin) on Feb 09, 2022 at 21:15 UTC | |
by LanX (Saint) on Feb 09, 2022 at 21:56 UTC | |
by hippo (Archbishop) on Feb 10, 2022 at 10:29 UTC | |
by LanX (Saint) on Feb 10, 2022 at 13:27 UTC | |
by GotToBTru (Prior) on Feb 10, 2022 at 19:50 UTC | |
by LanX (Saint) on Feb 10, 2022 at 20:19 UTC | |
by kcott (Archbishop) on Feb 10, 2022 at 01:49 UTC | |
by eyepopslikeamosquito (Archbishop) on Feb 11, 2022 at 07:12 UTC | |
by erix (Prior) on Feb 11, 2022 at 07:26 UTC | |
by LanX (Saint) on Feb 11, 2022 at 08:44 UTC | |
by LanX (Saint) on Feb 11, 2022 at 18:05 UTC | |
by jdporter (Paladin) on Feb 10, 2022 at 20:52 UTC | |
by kcott (Archbishop) on Feb 11, 2022 at 02:57 UTC | |
by jdporter (Paladin) on Feb 11, 2022 at 14:24 UTC | |
by LanX (Saint) on Feb 10, 2022 at 21:47 UTC | |
|