repl.it
@GeorgeIrvine_Fy/

The Valley Of Cumin

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
import random
import time
#help me please
print("Listen! YOU WILL BE GIVEN TWO OPTIONS. IF YOU TYPE IN OTHER THAN THE OPTIONS I WILL END THE GAME")
chefrandyb=(random.randint(1,4))
chefrandya=["Gordon Ramsey","Jamie Oliver","Paul Hollywood","Willy Wonka"]
chefrandy=chefrandya[random.randint(0,3)]
print(random.randint(1,100))
print("Greetings brave adventurer! Today your quest will be to bake the most mystical dish of all time, in order to save the kingdom of Emoles60!")
time.sleep(2)
print(chefrandy)
name=input("What is your name brave adventurer?   ")
print("Aha! Greetings",name,". It is good to have you undertake this quest!")
time.sleep(2)
print("You will need to make a:")
print("Drum roll please")
time.sleep(2)
dishNo=random.randint(1,5)
if dishNo==1:
  dishofdoom=("Chicken salad with grapes and walnuts")
if dishNo==2:
  dishofdoom=("Smoked samon carbonara with Lemon")
if dishNo==3:
  dishofdoom=("Skirt steak with a strange unspeakably hard to pronounce sauce")
if dishNo==4:
  dishofdoom=("Roasted Garlic Mac And Cheese")
if dishNo==5:
  dishofdoom=("Palt")
print(dishofdoom,"!")
dishyes=random.randint(1,5)
if dishyes==1:
  dishofyum=("a fizzy drink!")
if dishyes==2:
  dishofyum=("a pizza!")
if dishyes==3:
  dishofyum=("sweetened breakfast cereal")
if dishyes==4:
  dishofyum=("white bread!")
if dishyes==5:
  dishofyum=("ice cream!")
print("If you don't the world will turn into",dishofyum)
print("We must set out at once!")
wayone=input("You arrive from your home at the kingdom of Gorebrah, king of chefs. He looks down at you from his throne, a beautiful chair made of the finest serving spoons! There he offers you a quest which you happliy accept. As you leave the room you wonder at his instructions:'Go to the master chefin the valley of Cumin!' You pause outside the signs  at the cross roads.                                                             The left pointing sign is marked Woods and the right sign is marked mountains. Which way do you want to go? (left or right)    ")
if wayone==("left"):
  print("As you are wandering through the woods you notice a structure to your left. Would you like to explore it? (yes or no)")
  cakehouse=input("")
  if cakehouse==("yes"):
    print("As you step inside the building you smell cake. MMMMMMMMMM. Cake. You look around and notice a sign saying:'What is the cakiest cake?'")
    carrot=input("On display there is a carrot cake, triple chocolate fudge cake, banana cake and sponge cake. Which is the cakiest cake?   ")
    if carrot==("carrot"):
      print("As you reach for the carrot cake the structure shakes and you are given a new power! Bragging rights! You choose right!")
    if carrot!=("carrot"):
      print("As you reach for the cake nothing happens. You picked wrong.")
    print("You leave the structure.")
  print("As you continue you on the road you notice an old hag cooking outside her hut.")
  print("As you walk up to here she grins. 'Hello there",name,"I see you have come to taste my stew'")
  mmmmmstew=input("Would you like to try it? (yes or no)   ")
  if mmmmmstew==("yes"):
    print("As you lean forwards to taste she wacks you on the head with a frying pan.")
    print("You wake up in a bed.")
    print("The master chef, ",chefrandy,",is looking down at you.")
    print("'Ah, you are awake.'says ",chefrandy,". Ssorry to have to get you to me this way, but it was easiest!")
    print("We must get a cookin'!")
    input("In order to begin the ritual, we must first prepare the meal! Are you ready?   ")
    print("You prepare the meal.")
    hahahasadface=input("What did we need to make again?   ")
    if hahahasadface!=dishofdoom:
      print("You prepeared the wrong dish!")
      print("With a rumble of lightning the world is turned into ",dishofyum,"!")
      exit()
    if hahahasadface==dishofdoom:
      print(chefrandy," nods his head in approval as you make a perfect", dishofdoom,"!")
      print("With your fine chef skills you have saved the world! Hazzah!")
      exit()
  if mmmmmstew!=("yes"):
    print("You turn away from the hag and she mutters angrily to herself.")
    print("You wander deeper into the forest and come to a gate. You walk round it and exam the other side. It is a gate to nothing.")
    riddlemethis=input("You look onto the door and notice a riddle it says: A container without hinges, lock or a key, yet a golden treasure lies inside me. What am I?   ")
    if riddlemethis==("An egg"):
      print("the door opens and you can see the path to the valley of Cumin! You go through it.")
      print("You wake up in a bed.")
      print("The master chef, ",chefname,"is looking down at you.")
      print("'Ah, you are awake.'says ",chefname,". Sorry to have to get you to me this way, but it was easiest!")
      print("We must get a cookin'!")
      input("In order to begin the ritual, we must first prepare the meal! Are you ready?   ")
      print("You prepare the meal.")
      hahahasadface=input("What did we need to make again?   ")
      if hahahasadface!=dishofdoom:
        print("You prepeared the wrong dish!")
        print("With a rumble of lightning the world is turned into ",dishofyum,"!")
        exit()
      if hahahasadface==dishofdoom:
        print(chefname," nods his head in approval as you make a perfect", dishofdoom,"!")
        print("With your fine chef skills you have saved the world! Hazzah!")
        exit()
    if riddlemethis!=("An egg"):
      print("THe gate shudders. You were wrong.")
      print("You turn away from the gate.")
      input("AS you start down the forest path the floor rumbles before you. What would you like to do?"   )
      print("Beneath your feet the world is turned into",dishofyum)
      print("You failed")
      exit()
if wayone==("right"):
  print("You make your way into the moutantains")
  print("you see a hut. Inside is a pot. Do you want to climb inside?")
  #4
  donot=input("")
  if donot==("yes"):
    asparagus=random.randint(0,3)
    if asparagus==0:
      print("As you climb in you are turned into an asparagus.")
      exit()
    if asparagus!=0:
      print("As you climb in you feel a weird sensation. You beifly get turned into an asparagus!")
      print("You wake up and see the hut's owner, a pasta troll, preparing a meal.")
      trolllllllled=input("Do you awant to struggle?   ")
      print("You are still an asparagus.")
      exit()
  if donot!=("yes"):
    print("you ignore the hut and keep walking.")
    print("As you walk on you notice a statue. It is a pepper shaker. On it is inscribed the words: THE CAKE IS A LIE")
    print("You shrug")
    time.sleep(2)
    print("You reach an inn where you sleep the night")
    print("You wake up surrounded by Durian Goblins. They stink.")
    print("The goblins walk up to you and grin")
    print("They say: Cook us some cake or we eat you!")
    mwahwah=input("You have to guess either 1 or 2 or you bake the cake wrong!")
    if mwahwah==("1"):
      print("The goblins munch on the cake. They like it! You get set free")
      print("As you set off on your way you come to a small forest. You walk into it.")
      print("You wander deeper into the forest and come to a gate. You walk round it and exam the other side. It is a gate to nothing.")
      riddlemethis=input("You look onto the door and notice a riddle it says: A container without hinges, lock or a key, yet a golden treasure lies inside me. What am I?   ")
      if riddlemethis==("An egg""an egg"):
        print("the door opens and you can see the path to the valley of Cumin! You go through it.")
        print("You wake up in a bed.")
        print("The master chef, ",chefname,",is looking down at you.")
        print("'Ah, you are awake.'says ",chefname,". Ssorry to have to get you to me this way, but it was easiest!")
        print("We must get a cookin'!")
        input("In order to begin the ritual, we must first prepare the meal! Are you ready?   ")
        print("You prepare the meal.")
        hahahasadface=input("What did we need to make again?   ")
        if hahahasadface!=dishofdoom:
          print("You prepeared the wrong dish!")
          print("With a rumble of lightning the world is turned into ",dishofyum,"!")
          exit()
        if hahahasadface==dishofdoom:
          print(chefname," nods his head in approval as you make a perfect", dishofdoom,"!")
          print("With your fine chef skills you have saved the world! Hazzah!")
          exit()
      if riddlemethis!=("An egg""an egg"):
        print("THe gate shudders. You were wrong.")
        print("You turn away from the gate.")
        input("AS you start down the forest path the floor rumbles before you. What would you like to do?"   )
        print("Beneath your feet the world is turned into",dishofyum)
        print("You failed")
        exit()
    if mwahwah!=("1"):
      print("The goblin cheif looks at your cake sceptically, sniffes it and then takes a large bite. He falls over dead")
      print("Apparently you put too much Aged Gouda in.")
      exit()
if wayone!=("left""right"):
  print("Do not deliberately try ruin this code")
  time.sleep(3)
  exit()
if name==("asda","sainsbury","Asda","Sainsbury"):
  print("After your adventure you were given a free gift bag from",name)