3 all_words
=[i
.strip() for i
in open("words.txt").readlines()]
7 while game
!="EASY" and game
!= "HARD":
8 game
=input("choose the difficulty easy or hard...").upper()
9 print("you have 30 seconds (45 if you picked 'hard') to memorise a grid of words. Good luck...")
12 def words_for_game(words
, is_easy
):
18 def print_grid(words
):
22 # random.shuffle(words)
23 # added_word=words.pop()
25 # print(words[3*i],words[3*i+1],words[3*i+2])
28 is_easy
= get_difficulty()
29 words
= words_for_game(all_words
, is_easy
)