Advertisement
daichan21

braveNewWorld

Nov 22nd, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.96 KB | None | 0 0
  1. import time
  2. import random
  3.  
  4. def twp(string, typewriterN):
  5.     listOfString = list(string)
  6.     indexOfString = list(range(len(listOfString)))
  7.     j = 0
  8.     while j < len(listOfString):
  9.         print(listOfString[j], end='')
  10.         j = j+1
  11.         time.sleep(1/typewriterN)
  12.  
  13. def cfnp(string, confusingN):
  14.     listOfString = list(string)
  15.     indexOfString = list(range(len(listOfString)))
  16.     while len(listOfString) >= 1:
  17.         k = random.randint(0, len(listOfString)-1)
  18.         print(listOfString[k], end='')
  19.         del listOfString[k]
  20.         time.sleep(1/confusingN)
  21.        
  22. twp("""
  23. ######  ######     #    #     # #######
  24. #     # #     #   # #   #     # #      
  25. #     # #     #  #   #  #     # #      
  26. ######  ######  #     # #     # #####  
  27. #     # #   #   #######  #   #  #      
  28. #     # #    #  #     #   # #   #      
  29. ######  #     # #     #    #    #######   \n""", 1600)
  30.  
  31. twp(
  32. """
  33. #     # ####### #     #
  34. ##    # #       #  #  #
  35. # #   # #       #  #  #
  36. #  #  # #####   #  #  #
  37. #   # # #       #  #  #
  38. #    ## #       #  #  #
  39. #     # #######  ## ##      \n""", 1600)
  40.  
  41. twp(
  42. """
  43. #     # ####### ######  #       ######  
  44. #  #  # #     # #     # #       #     #
  45. #  #  # #     # #     # #       #     #
  46. #  #  # #     # ######  #       #     #
  47. #  #  # #     # #   #   #       #     #
  48. #  #  # #     # #    #  #       #     #
  49. ## ##  ####### #     # ####### ######      \n""", 1600)
  50.  
  51. twp("\n \n \t \t \t Python Project by 'daichan21' D. Zhang. November 2014.", 50)
  52. twp("\t \t \t Visit my blog DZ's Klavier @ http://daichan21.wordpress.com", 50)
  53. twp("\t \t \t My GitHub: daichan21  My Pastebin: daichan21", 50)
  54.  
  55. initialization = input("Enter Enter Key to start game: \n")
  56.  
  57. while initialization != '':
  58.     twp("Come on, you know where the Enter Key is. LOL \n", 100)
  59.     initialization = input("Enter Key to start game: \n")
  60. else:
  61.     twp("Nice!\n", 100)
  62.    
  63. twp("What is your name, ", 75)
  64. twp("sir?", 20)
  65. playerName = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement