Advertisement
daichan21

fur ozcer

Nov 24th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.39 KB | None | 0 0
  1. import random
  2. import time
  3. import string
  4.  
  5. def twp(string, typewriterN):
  6.     listOfString = list(string)
  7.     indexOfString = list(range(len(listOfString)))
  8.     j = 0
  9.     while j < len(listOfString):
  10.         print(listOfString[j], end='')
  11.         j = j+1
  12.         time.sleep(1/typewriterN)
  13.  
  14. def cfnp(string, confusingN):
  15.     listOfString = list(string)
  16.     indexOfString = list(range(len(listOfString)))
  17.     while len(listOfString) >= 1:
  18.         k = random.randint(0, len(listOfString)-1)
  19.         print(listOfString[k], end='')
  20.         del listOfString[k]
  21.         time.sleep(1/confusingN)
  22.  
  23. numberOfLetters = 3
  24.  
  25. while numberOfLetters < 100:
  26.        
  27.         randomWordGenerated = ''.join(random.choice(string.ascii_lowercase) for i in range(numberOfLetters))
  28.         twp("\n \n" + randomWordGenerated, 25)
  29.         time.sleep(4.5)
  30.         print("""
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.        """)
  66.         twp("\nWhat was that?", 100)
  67.         playerAnswer = input()
  68.         if playerAnswer == randomWordGenerated:
  69.             twp("\nNicely done! It will get way harder!", 80)
  70.             numberOfLetters = (numberOfLetters - 1)^2
  71.         else:
  72.             twp("Sorry, that was not correct.\n", 90)
  73.             twp("You failed to prove yourself as a qualified citizen of the World State.\n", 70)
  74.             twp("But we will give you another chance.\n", 90)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement