points = 0 playorno = input("""I AM THE WORD DRAGON, IF YOU DO NOT WANT TO BE EATEN, THEN PLAY MY GAME... It is a word game. I will explain what you have to do when the time comes. Here are the rules: 1. Do NOT use spaces when answering 2. Do NOT press 'enter' when answering a question 3. Do NOT use capitalswhen writin anything If you fail to do any of these rules, you will be eaten on the spot (or you won't gain a point either one really). Will you take the challenge?""") if playorno == "no": print("""fine, be that way then... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...SIKE you're playing!""") elif playorno == "yes": print("Great! Let's start the game.") answer1 = input( """ OK now here is the first game. I will place a seemingly random set of words infornt of you with a definition underneath it. However that set of words is actually a scrambled word, and that definition underneath is the definition to the scrambled word. You're aim is to unscramble the word. The name of this game is called "unscramble" (very interesting I know) LEVEL 1 Game: Unscramble Unscramble this: ulnra. Definition: resembling the moon""") if answer1 == "lunar": print("correct!") points = points + 1 print("your score is: ", points) else: print("WRONG! It was lunar! HahahhahhHAHAAhaHha...") print("your score is: ", points) answer2 = input( """ LEVEL 2 Game: Unscramble Unscramble this: fceofe. Definition: a hot drink made from the roasted and ground bean-like seeds of a tropical shrub. Often used to wake people up.""") if answer2 == "coffee": print("correct!") points = points + 1 print ("your score is: ", points) else: print("WRONG! It was coffee, you're really bad at this...") print("your score is: ", points) answer3 = input( """ LEVEL 3 Game: Unscramble Unscramble this: rdca. Definition: a piece of thick, stiff paper or thin pasteboard, in particular one used for writing or printing on. (Think of Birthdays)""") if answer3 == "card": print("correct!") points = points + 1 print("your score is: ", points) else: print("WRONG! It was card, do you even write bro?") print("your score is: ", points) answer4 = input( """ Now they get a little less easy... LEVEL 4 Game: Unscramble Unscramble this: saciesseorc Definition: a thing which can be added to something else in order to make it more useful, versatile, or attractive.""") if answer4 == "accessories": print("correct!") points = points + 1 print("your score is: ", points) else: print("WRONG! It was accessories. Pffft why do you even try?") print("your score is: ", points) answer5 = input( """ LEVEL 5 Game: Unscramble Unscramble this: aobrvfalue Definition: to the advantage of someone or something.""") if answer5 == "favourable": print("correct!") points = points + 1 print("your score is: ", points) else: print("WRONG! It was favourable. Pffft why do you even try?") print("your score is: ", points) answer6 = input( """ Here's a new game. Your task is to fill in the gaps if words that I'm going to give you. I will give you the definition as well. Type in the full word when answering. LEVEL 6 Game: Fill-The-Gaps Fill in this: h__se Definition: a solid-hoofed plant-eating domesticated mammal with a flowing mane and tail, used for riding, racing, and to carry and pull loads.""") if answer6 == "horse": print("correct!") points = points + 1 print("your score is: ", points) else: print("WRONG! It was horse. Go back to Science.") print("your score is: ", points) answer7 = input( """ LEVEL 7 Game: Fill-The-Gaps Fill in this:_abl_ Definition: a piece of furniture with a flat top and one or more legs, providing a level surface for eating, writing, or working at.""") if answer7 == "table": print("correct!") points = points + 1 print("your score is: ", points) else: print("WRONG! It was table. Where do YOU have YOUR dinner?") print("your score is: ", points) answer8 = input( """ Now things get a little less easy... LEVEL 8 Game: Fill-The-Gaps Fill in this: __van_age Synonyms: benefit, perk, convenience""") if answer8 == "advantage": print("correct!") points = points + 1 print("your score is: ", points) else: print("WRONG! It was advantage. This question wasn't to your advantage either.") print("your score is: ", points) answer9 = input( """ LEVEL 9 Game: Fill-The-Gaps Fill in this: p_c_l_ar Synonyms: strange, weird, uncanny""") if answer9 == "peculiar": print("correct!") points = points + 1 print("your score is: ", points) else: print("WRONG! It was peculiar") print("your score is: ", points) answer10 = input( """ -----FINAL LEVEL----- LEVEL 10 Game: Fill-The-Gaps Fill in this: __tr_ya_ Synonyms: treachery, disloyalty""") if answer10 == "betrayal": print("correct!") points = points + 1 print("your score is: ", points) else: print("WRONG! It was betrayal. Your wrong answer offended the correct answer.") print("your score is: ", points) print("You have made it through. Here is your score", points, """. I had hoped I could eat you but you look like someone I used to know... ...and I hope you never return. Sincerely, Word Dragon.""")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question