Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import random
- 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)
- twp("""
- ###### ###### # # # #######
- # # # # # # # # #
- # # # # # # # # #
- ###### ###### # # # # #####
- # # # # ####### # # #
- # # # # # # # # #
- ###### # # # # # ####### \n""", 1600)
- twp(
- """
- # # ####### # #
- ## # # # # #
- # # # # # # #
- # # # ##### # # #
- # # # # # # #
- # ## # # # #
- # # ####### ## ## \n""", 1600)
- twp(
- """
- # # ####### ###### # ######
- # # # # # # # # # #
- # # # # # # # # # #
- # # # # # ###### # # #
- # # # # # # # # # #
- # # # # # # # # # #
- ## ## ####### # # ####### ###### \n""", 1600)
- twp("\n \n \t \t \t Python Project by 'daichan21' D. Zhang. November 2014.", 50)
- twp("\t \t \t Visit my blog DZ's Klavier @ http://daichan21.wordpress.com", 50)
- twp("\t \t \t My GitHub: daichan21 My Pastebin: daichan21", 50)
- initialization = input("Enter Enter Key to start game: \n")
- while initialization != '':
- twp("Come on, you know where the Enter Key is. LOL \n", 100)
- initialization = input("Enter Key to start game: \n")
- else:
- twp("Nice!\n", 100)
- twp("What is your name, ", 75)
- twp("sir?", 20)
- playerName = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement