Skip to content

Commit

Permalink
touch up
Browse files Browse the repository at this point in the history
  • Loading branch information
TemporarilyOffline committed Apr 26, 2019
1 parent cf1a17b commit 51434a5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions words.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,21 @@
import random
import subprocess

# open the OSPD4_stripped.txt file and grab
# open the bogwords.txt file and grab
# a random set of SET words, made up of no
# more than MAX_LETTERS

SET=25
MAX_LETTERS=4
#MAX_LETTERS += 1
RESULTS = []

#f = open("OSPD4_stripped.txt")
f = open("bogwords.txt")

for line in f:
if len(line.strip()) <= MAX_LETTERS:
RESULTS.append(line.strip())

random.shuffle(RESULTS)
#print("\n".join(RESULTS[len(RESULTS)-SET:]))

for word in RESULTS:
subprocess.run(["./morse.py", word])
Expand Down

0 comments on commit 51434a5

Please sign in to comment.