I am currently making a memory game where I print a few words and after a given time the words are shuffled and then one word is removed and replaced with a new one. Then I would get the user to answer which word has been removed and which word has then replaced that word. For instance, it will print:
CAT DOG MOUSE HORSE
And after 10 seconds, I would like those words to be hidden, be shuffled and replace one word with a new word so that it prints, for example:
DOG HORSE RABBIT CAT
I understand that I can use time.sleep()
for the program to suspend the execution of any other code.
Would it be easier to essentially "unprint" the first set of words and then print the new one OR replace the first printed set of words with the new one.