Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.33 KB | None | 0 0
  1. import random
  2. import time
  3. ordn = 0
  4. qua = 0
  5. master = ""
  6. wir_e = ["skulduggery", "jar", "clarsach", "growl", "slugabed", "ledger", "jibe", "audiation", "ply", "muliebrity", "nervous", "dekulakize", "triangulation", "conversely", "pendragon", "carbonado", "pronoia", "haul", "stance", "histrionic", "vamp", "analphabet", "esurient", "rainmaker", "husbandry", "hobbyist", "deglutition", "caressive", "boffin", "gassy", "pipe", "finesse", "koha", "cachexia", "flare", "inexorable", "dehort", "caliginous", "emu", "brumous", "gigot", "pomander", "acquit", "gumption", "banausic", "bounden", "darkly", "blotto", "blooper", "cryptodepression", "puffling", "prescient", "tumultuous", "supine", "dashcam", "trice", "box", "mistletoe", "parse", "oneiromancy", "chilly", "leister", "turntable", "prototype", "sinew", "defervesce", "plaque", "fard", "elevenses", "deperm", "dame", "irregardless", "ohana", "conglomerate", "archetype", "sowl", "loch", "bivious", "mirative", "illustrious", "chatelaine", "battue", "exiguity", "ariose", "remora", "belluine", "borborygm", "marocain", "monopsony", "seasteading", "fruiterer", "hydrophobia", "overproof", "armistice", "heresiarch", "arrowroot", "wendigo", "endmember", "audient", "recension", "amigurumi", "homily", "bloodthirsty", "talaria", "shunt", "fruitless", "patronize", "daft", "corkage", "tattle", "potsherd", "list", "demimonde", "wheelie", "aquaponics", "mickle", "troth", "scour", "main", "ferrule", "acute", "slivovitz", "disrecommend", "plesionym", "wasm", "balconic", "ageful", "supernumerary", "xebec", "apricate", "ruse", "gamboge", "raunchiness", "abase", "utopographer", "cherish", "cybernat", "warrant", "cummerbund", "jumbo", "rantistirion", "nitty", "ostrichism", "necessitate", "colonelcy", "baragouin", "zowerswopped", "aegis", "thrice", "dernier", "lepak", "undercurrent", "rakhi", "endearing", "runway", "badass", "repdigit", "nosegay", "insouciant", "freewheeling", "juvenile", "doofer", "bosomy", "klaxon", "luminary", "unwittingly", "august", "adret", "deadfall", "numinous", "fetial", "sassywood", "mink", "maverick", "forex", "lucre", "prowess", "emoji", "champagne", "regmaglypt", "shrill", "acquis", "faze", "gramarye", "chic", "cirque", "behove", "enormity", "moccasin", "mythos", "tortoni", "abiogenesis", "stonewall", "moiety", "catheter", "fiendishly", "melomaniac", "barcarole", "shrithe", "zongzi"]
  7. zu = random.sample(wir_e, 200)
  8. def gem(ordn, qua):
  9.     if ordn > 199:
  10.         print("You actually have won the game & guessed all the words the author added, go and have some rest... No one is more deserving of a rest.")
  11.     else:
  12.         finished = False
  13.         fe = 0
  14.         anz = "You've guessed"
  15.         gen = ["A-ha!", "Aha!", "Bingo!", "Eureka!", "Exactly!", "Got it!", "That's it!", "Yes!"]
  16.         au = ["Cheers'en!", "Cheerzen!"]
  17.         master = zu[ordn]
  18.         word = list(master)
  19.         length = len(word)
  20.         right = list("_" * length)
  21.         while finished == False:
  22.             guess = input("Guess a letter! ")
  23.             if guess not in master:
  24.                 fe += 1
  25.                 print("This letter is not in the word.")
  26.             for letter in word:
  27.                 if letter == guess:
  28.                     index = word.index(guess)
  29.                     right[index] = guess
  30.                     word[index] = "_"
  31.                     print(random.choice(gen))
  32.             print(right)
  33.             if list(master) == right:
  34.                 qua += 1
  35.                 ordn += 1
  36.                 print(anz, master.upper())
  37.                 ac = "But you made a mistake " + str(fe) + " times."
  38.                 if fe >= 26:
  39.                     print(ac, "How come?! You dunno how to play, as a matter of fact!!")
  40.                 elif fe >= 13:
  41.                     print(ac, "It seems too difficult for you, init?")
  42.                 elif fe >= 9:
  43.                     print(ac, "Well, that's OK")
  44.                 elif fe >= 7:
  45.                     print(ac, "That's pretty cool, you're doing it pretty well.")
  46.                 elif fe >= 5:
  47.                     print(ac, "You rock!")
  48.                 elif fe >= 2:
  49.                     print("Are you a native speaker? Only", str(fe), "mistakes.")
  50.                 elif fe == 1:
  51.                     print("You've made 1 mistake...")
  52.                 else:
  53.                     print("It's impossible! No mistakes. How come? Ew, cheater.")
  54.                 if qua < 2:
  55.                     print(anz, str(qua), "word! Try it once more.")
  56.                 else:
  57.                     print(anz, str(qua), "words already! Attaboy :D")
  58.                 quai = input("""Wanna play again? y/n
  59. """)
  60.                 if quai == "n":
  61.                     print(random.choice(au))
  62.                     time.sleep(1)
  63.                     exit()
  64.                 elif quai == "y":
  65.                     print("then...")
  66.                     gem(ordn, qua)
  67.                 else:
  68.                     def sto(au):
  69.                         gr = input("""PRINT EITHER y OR n
  70. """)
  71.                         if gr == "n":
  72.                             print(random.choice(au))
  73.                             time.sleep(1)
  74.                             exit()
  75.                         elif gr == "y":
  76.                             gem(ordn, qua)
  77.                         else:
  78.                             sto(au)
  79.                     sto(au)
  80.                 finished = True
  81. gem(ordn, qua)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement