Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import time
- import string
- def twp(string, typewriterN):
- listOfString = list(string)
- indexOfString = list(range(len(listOfString)))
- j = 0
- while j < len(listOfString):
- print(listOfString[j], end='')
- j = j+1
- time.sleep(1/typewriterN)
- def cfnp(string, confusingN):
- listOfString = list(string)
- indexOfString = list(range(len(listOfString)))
- while len(listOfString) >= 1:
- k = random.randint(0, len(listOfString)-1)
- print(listOfString[k], end='')
- del listOfString[k]
- time.sleep(1/confusingN)
- numberOfLetters = 3
- while numberOfLetters < 100:
- randomWordGenerated = ''.join(random.choice(string.ascii_lowercase) for i in range(numberOfLetters))
- twp("\n \n" + randomWordGenerated, 25)
- time.sleep(4.5)
- print("""
- """)
- twp("\nWhat was that?", 100)
- playerAnswer = input()
- if playerAnswer == randomWordGenerated:
- twp("\nNicely done! It will get way harder!", 80)
- numberOfLetters = (numberOfLetters - 1)^2
- else:
- twp("Sorry, that was not correct.\n", 90)
- twp("You failed to prove yourself as a qualified citizen of the World State.\n", 70)
- twp("But we will give you another chance.\n", 90)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement