Skip to content

Commit

Permalink
trim word list properly
Browse files Browse the repository at this point in the history
  • Loading branch information
TemporarilyOffline committed Apr 26, 2019
1 parent 51434a5 commit ac759bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions words.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand All @@ -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()

0 comments on commit ac759bc

Please sign in to comment.