From ac759bcf63dffd1548ed0cdc868ee2e616037587 Mon Sep 17 00:00:00 2001 From: Steve McGrane Date: Fri, 26 Apr 2019 18:58:16 -0500 Subject: [PATCH] trim word list properly --- words.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/words.py b/words.py index b2eb88a..75c2e09 100755 --- a/words.py +++ b/words.py @@ -7,7 +7,7 @@ # a random set of SET words, made up of no # more than MAX_LETTERS -SET=25 +SET=3 MAX_LETTERS=4 RESULTS = [] @@ -18,8 +18,8 @@ RESULTS.append(line.strip()) random.shuffle(RESULTS) - -for word in RESULTS: +TEST_SET = RESULTS[len(RESULTS)-SET:] +for word in TEST_SET: subprocess.run(["./morse.py", word]) f.close() \ No newline at end of file