jonpreamble commited on
Commit
f7cd020
·
1 Parent(s): e19f381

Styling the page to fit the theme of a medieval scroll

Browse files
Files changed (3) hide show
  1. app.py +13 -2
  2. game_content.py +100 -40
  3. webpage.py +0 -0
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import os, random
2
  import openai
3
  import gradio as gr
@@ -7,6 +9,7 @@ from game_content import N_TURNS_REQUIRED_TO_PASS_FIRST_BANDIT_ENCOUNTER, N_TURN
7
  import decider_utils
8
  from decider_utils import YES, NO
9
  from decider_questions import * # QUESTION_IS_USER_HOME, QUESTION_IS_USER_ENGAGED_WITH_BANDITS, etc.
 
10
 
11
 
12
  N_COMPLETIONS_WHEN_ELABORATING = 1 # I previously had this set to 3, but that made the program very slow.
@@ -124,6 +127,7 @@ def run_1_game_turn(s_narr_transcript, s_n_turns_elapsed, s_user_transcript, s_u
124
  openai.organization = os.environ.get("OPENAI_ORGANIZATION")
125
  openai.api_key = os.environ.get("OPENAI_KEY")
126
 
 
127
  demo = gr.Blocks()
128
 
129
  with demo:
@@ -132,10 +136,13 @@ with demo:
132
  s_narr_transcript = game_intro + NOTES_TO_THE_NARRATOR_AT_START + AWAITING_INPUT
133
  s_user_transcript = game_intro + AWAITING_INPUT
134
 
 
 
135
  gr_narr_transcript = gr.Textbox(label="", value=s_narr_transcript, interactive=False, max_lines=9999, visible=False)
136
- gr_user_transcript = gr.Textbox(label="", value=s_user_transcript, interactive=False, max_lines=9999)
137
 
138
- gr_markdown1 = gr.Markdown("After clicking Run Next Turn, please be patient as it may take up to a minute for the game state to update.")
 
139
  gr_user_input = gr.Textbox(label="", value="", placeholder="Describe your next action here...", interactive=True)
140
  gr_button1 = gr.Button(value="Run Next Turn")
141
 
@@ -145,4 +152,8 @@ with demo:
145
  fn=run_1_game_turn, inputs=[gr_narr_transcript, gr_n_turns_elapsed, gr_user_transcript, gr_user_input], outputs=[gr_narr_transcript, gr_n_turns_elapsed, gr_user_transcript, gr_user_input]
146
  )
147
 
 
 
 
 
148
  demo.launch()
 
1
+ # formatted with python black, line length 200
2
+
3
  import os, random
4
  import openai
5
  import gradio as gr
 
9
  import decider_utils
10
  from decider_utils import YES, NO
11
  from decider_questions import * # QUESTION_IS_USER_HOME, QUESTION_IS_USER_ENGAGED_WITH_BANDITS, etc.
12
+ from webpage import PAGE_STYLING_JS, PLEASE_BE_PATIENT_DIV, TOP_OF_SCREEN_PADDING_DIV
13
 
14
 
15
  N_COMPLETIONS_WHEN_ELABORATING = 1 # I previously had this set to 3, but that made the program very slow.
 
127
  openai.organization = os.environ.get("OPENAI_ORGANIZATION")
128
  openai.api_key = os.environ.get("OPENAI_KEY")
129
 
130
+
131
  demo = gr.Blocks()
132
 
133
  with demo:
 
136
  s_narr_transcript = game_intro + NOTES_TO_THE_NARRATOR_AT_START + AWAITING_INPUT
137
  s_user_transcript = game_intro + AWAITING_INPUT
138
 
139
+ gr_top_of_scr_padding = gr.HTML(TOP_OF_SCREEN_PADDING_DIV)
140
+
141
  gr_narr_transcript = gr.Textbox(label="", value=s_narr_transcript, interactive=False, max_lines=9999, visible=False)
142
+ gr_user_transcript = gr.Textbox(label="", value=s_user_transcript, interactive=False, max_lines=9999, elem_classes="parleygame")
143
 
144
+ gr_pls_be_patient = gr.HTML(PLEASE_BE_PATIENT_DIV)
145
+
146
  gr_user_input = gr.Textbox(label="", value="", placeholder="Describe your next action here...", interactive=True)
147
  gr_button1 = gr.Button(value="Run Next Turn")
148
 
 
152
  fn=run_1_game_turn, inputs=[gr_narr_transcript, gr_n_turns_elapsed, gr_user_transcript, gr_user_input], outputs=[gr_narr_transcript, gr_n_turns_elapsed, gr_user_transcript, gr_user_input]
153
  )
154
 
155
+ # See https://discuss.huggingface.co/t/gradio-html-component-with-javascript-code-dont-work/37316/2
156
+ demo.load(None, None, None, _js=PAGE_STYLING_JS)
157
+
158
+
159
  demo.launch()
game_content.py CHANGED
@@ -20,27 +20,35 @@ GAME_INTRO_CHOICES = []
20
  # That way the web version of the game can load instantly
21
 
22
  # Intro_1.txt
23
- GAME_INTRO_CHOICES.append(GAME_HEADER + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
 
 
24
 
25
  You have been travelling for three days now and the journey is almost over. The night before you reach your destination, you set up camp in a secluded area, hoping to make it home without any trouble. As you are preparing your dinner, you hear a rustling in the bushes. You ready your revolver and prepare for the worst.
26
 
27
  Out of the bushes emerges a group of five bandits. They are all armed with swords and daggers but they also have revolvers at their sides. The leader steps forward and demands that you hand over all your gold coins or else they will kill you and take it by force. You know that if you don't comply, you won't make it home alive or with enough gold to support your family. You also know that if these bandits get their hands on all 100 coins, then your family will suffer greatly this year as they won't be able to afford food or other necessities.
28
 
29
  You must think quickly - do you try to fight them off or do you negotiate with them?
30
- """)
 
31
 
32
  # Intro_2.txt
33
- GAME_INTRO_CHOICES.append(GAME_HEADER + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
 
 
34
 
35
  You have been making this journey for the past five years with no problems, but this year the trip has been unusually dangerous. You have encountered more bandits than usual and you are now down to your last 20 coins. You are about a day away from home when you come across a group of bandits in the road ahead.
36
 
37
  You recognize one of them as a man who had tried to rob you two days prior. He had failed then, but he is back with reinforcements and they seem determined to take what's left of your gold. You can tell by their demeanor that they will not be swayed by words or threats, so you draw your revolver and prepare to fight for your money.
38
 
39
  You know that if you can make it past this group, you will be able to make it home safely with enough money for your family to survive the winter. You take a deep breath and prepare yourself for battle, knowing that this may be your last chance at survival...
40
- """)
 
41
 
42
  # Intro_3.txt
43
- GAME_INTRO_CHOICES.append(GAME_HEADER + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
 
 
44
 
45
  You have been traveling for weeks now and you are nearing the end of your journey. You can see the border between Tibet and Nepal in the distance, but before you can cross it, you must pass through a narrow mountain pass. As you enter the pass, you hear a voice call out from behind you.
46
 
@@ -49,10 +57,13 @@ You have been traveling for weeks now and you are nearing the end of your journe
49
  You turn around to find two bandits blocking your path, each armed with a magical revolver. They demand that you hand over half of your gold coins as 'protection money'. You know that if you give them what they want, there's no guarantee that they won't just take all of it anyway. On the other hand, if you refuse to pay up then they could easily shoot you down and take all of your coins anyway.
50
 
51
  What do you do?
52
- """)
 
53
 
54
  # Intro_4.txt
55
- GAME_INTRO_CHOICES.append(GAME_HEADER + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
 
 
56
 
57
  You have been walking for weeks and are now in the foothills of the Himalayas. You can see your destination in the distance, but you know that you must get through a dangerous pass before you will be safe. As you approach, you hear voices ahead and see a group of bandits blocking the path.
58
 
@@ -63,10 +74,13 @@ The leader of the bandits steps forward and says, "We'll let ye pass if ye give
63
  You stand firm and hold up your revolver, saying, "I'm not going to pay any tolls here today - I'm just trying to get home with my wages intact." The leader scowls at you and says, "If ye don't pay us what we're asking fer then we'll take it by force!" He motions to his men who all draw their weapons as well.
64
 
65
  Your heart races as you realize that this could easily turn into a fight with deadly consequences. You take a deep breath and try to think quickly - what do you do?
66
- """)
 
67
 
68
  # Intro_5.txt
69
- GAME_INTRO_CHOICES.append(GAME_HEADER + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
 
 
70
 
71
  You have been walking for days and you are now at the foot of the mountain range. You can see the peaks ahead of you, but they are shrouded in fog. You can feel a chill in the air and hear a distant rumble like thunder. The sun is setting and you know that night will come soon. You must make it across the mountains before nightfall or be stranded on their slopes for the night.
72
 
@@ -75,10 +89,13 @@ You look around for some shelter, but all you can find is a small cave nearby, b
75
  Suddenly, you hear voices outside! It sounds like bandits who have caught wind of your presence in this area and are coming to rob you! You quickly grab your revolver from its holster and prepare to defend yourself against these criminals. As they enter the cave, you take aim at them with your revolver, ready to fire if necessary. They seem surprised to see someone with a gun ready to fight back, but they don't back down either - they still demand that you give them all of your gold coins or else they'll kill you!
76
 
77
  What do you do? Do you try to reason with them or do you stand firm and fight?
78
- """)
 
79
 
80
  # Intro_6.txt
81
- GAME_INTRO_CHOICES.append(GAME_HEADER + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
 
 
82
 
83
  You have been travelling for two weeks and you are now at the foot of the Himalayas. You can see the snow-capped peaks in the distance and it is a daunting sight. You know that this is your most dangerous stretch of the journey, as bandits are known to hide in these mountains and prey on unsuspecting travellers.
84
 
@@ -89,75 +106,118 @@ You see three men wearing tattered clothes and carrying swords, walking towards
89
  What do you do?
90
 
91
  You could try to sneak around them, hoping not to be spotted. Or if that doesn't work out, you could try negotiating with them - offering them some gold coins in exchange for safe passage through their territory. If all else fails, you could always try fighting them off with your revolver - although this would be risky given their numbers and weapons. Whatever choice you make, it's important to stay calm and keep your wits about you so that you can make quick decisions if needed!
92
- """)
 
93
 
94
  # Intro_7.txt
95
- GAME_INTRO_CHOICES.append(GAME_HEADER + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
 
 
96
 
97
  You have been travelling for three days, and today is the fourth. You are almost to the border when you hear a voice calling out from the trees. You look up and see five bandits, all armed with magical firearms, standing in a semicircle around you.
98
 
99
  "We're taking your gold," one of them says. "You can either give it to us peacefully or we'll take it by force."
100
 
101
  You know that if you try to fight them off, you'll likely be killed or seriously injured. You also know that if you don't make it home with at least 30 coins, your family will suffer. You must think quickly to decide what to do.
102
- """)
 
103
 
104
  # Intro_8.txt
105
- GAME_INTRO_CHOICES.append(GAME_HEADER + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
 
 
106
 
107
  You have been travelling for the past two weeks, and you are now close to the border between Tibet and Nepal. You can see the snow-capped peaks of the Himalayas in the distance, but you know that you still have a long way to go before you make it home. You take a break from your journey and set up camp for the night. You light a small fire and settle down for some much needed rest.
108
 
109
  Just as you are about to drift off to sleep, you hear a rustling in the bushes nearby. You draw your revolver and aim it at the source of the noise, ready to fire if necessary. Suddenly, two bandits emerge from the bushes with their own revolvers pointed at you. They demand that you hand over your gold coins or else they will shoot.
110
 
111
  You must make a decision quickly; do you give them your gold coins or fight them?
112
- """)
 
113
 
114
  # Intro_9.txt
115
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
116
- """)
 
 
 
117
 
118
  # Intro_10.txt
119
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
120
- """)
 
 
 
121
 
122
  # Intro_11.txt
123
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
124
- """)
 
 
 
125
 
126
  # Intro_12.txt
127
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
128
- """)
 
 
 
129
 
130
  # Intro_13.txt
131
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
132
- """)
 
 
 
133
 
134
  # Intro_14.txt
135
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
136
- """)
 
 
 
137
 
138
  # Intro_15.txt
139
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
140
- """)
 
 
 
141
 
142
  # Intro_16.txt
143
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
144
- """)
 
 
 
145
 
146
  # Intro_17.txt
147
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
148
- """)
 
 
 
149
 
150
  # Intro_18.txt
151
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
152
- """)
 
 
 
153
 
154
  # Intro_19.txt
155
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
156
- """)
 
 
 
157
 
158
  # Intro_20.txt
159
- GAME_INTRO_CHOICES.append(GAME_HEADER + """
160
- """)
 
 
 
161
 
162
 
163
  NOTES_TO_THE_NARRATOR_AT_START = """
 
20
  # That way the web version of the game can load instantly
21
 
22
  # Intro_1.txt
23
+ GAME_INTRO_CHOICES.append(
24
+ GAME_HEADER
25
+ + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
26
 
27
  You have been travelling for three days now and the journey is almost over. The night before you reach your destination, you set up camp in a secluded area, hoping to make it home without any trouble. As you are preparing your dinner, you hear a rustling in the bushes. You ready your revolver and prepare for the worst.
28
 
29
  Out of the bushes emerges a group of five bandits. They are all armed with swords and daggers but they also have revolvers at their sides. The leader steps forward and demands that you hand over all your gold coins or else they will kill you and take it by force. You know that if you don't comply, you won't make it home alive or with enough gold to support your family. You also know that if these bandits get their hands on all 100 coins, then your family will suffer greatly this year as they won't be able to afford food or other necessities.
30
 
31
  You must think quickly - do you try to fight them off or do you negotiate with them?
32
+ """
33
+ )
34
 
35
  # Intro_2.txt
36
+ GAME_INTRO_CHOICES.append(
37
+ GAME_HEADER
38
+ + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
39
 
40
  You have been making this journey for the past five years with no problems, but this year the trip has been unusually dangerous. You have encountered more bandits than usual and you are now down to your last 20 coins. You are about a day away from home when you come across a group of bandits in the road ahead.
41
 
42
  You recognize one of them as a man who had tried to rob you two days prior. He had failed then, but he is back with reinforcements and they seem determined to take what's left of your gold. You can tell by their demeanor that they will not be swayed by words or threats, so you draw your revolver and prepare to fight for your money.
43
 
44
  You know that if you can make it past this group, you will be able to make it home safely with enough money for your family to survive the winter. You take a deep breath and prepare yourself for battle, knowing that this may be your last chance at survival...
45
+ """
46
+ )
47
 
48
  # Intro_3.txt
49
+ GAME_INTRO_CHOICES.append(
50
+ GAME_HEADER
51
+ + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
52
 
53
  You have been traveling for weeks now and you are nearing the end of your journey. You can see the border between Tibet and Nepal in the distance, but before you can cross it, you must pass through a narrow mountain pass. As you enter the pass, you hear a voice call out from behind you.
54
 
 
57
  You turn around to find two bandits blocking your path, each armed with a magical revolver. They demand that you hand over half of your gold coins as 'protection money'. You know that if you give them what they want, there's no guarantee that they won't just take all of it anyway. On the other hand, if you refuse to pay up then they could easily shoot you down and take all of your coins anyway.
58
 
59
  What do you do?
60
+ """
61
+ )
62
 
63
  # Intro_4.txt
64
+ GAME_INTRO_CHOICES.append(
65
+ GAME_HEADER
66
+ + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
67
 
68
  You have been walking for weeks and are now in the foothills of the Himalayas. You can see your destination in the distance, but you know that you must get through a dangerous pass before you will be safe. As you approach, you hear voices ahead and see a group of bandits blocking the path.
69
 
 
74
  You stand firm and hold up your revolver, saying, "I'm not going to pay any tolls here today - I'm just trying to get home with my wages intact." The leader scowls at you and says, "If ye don't pay us what we're asking fer then we'll take it by force!" He motions to his men who all draw their weapons as well.
75
 
76
  Your heart races as you realize that this could easily turn into a fight with deadly consequences. You take a deep breath and try to think quickly - what do you do?
77
+ """
78
+ )
79
 
80
  # Intro_5.txt
81
+ GAME_INTRO_CHOICES.append(
82
+ GAME_HEADER
83
+ + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
84
 
85
  You have been walking for days and you are now at the foot of the mountain range. You can see the peaks ahead of you, but they are shrouded in fog. You can feel a chill in the air and hear a distant rumble like thunder. The sun is setting and you know that night will come soon. You must make it across the mountains before nightfall or be stranded on their slopes for the night.
86
 
 
89
  Suddenly, you hear voices outside! It sounds like bandits who have caught wind of your presence in this area and are coming to rob you! You quickly grab your revolver from its holster and prepare to defend yourself against these criminals. As they enter the cave, you take aim at them with your revolver, ready to fire if necessary. They seem surprised to see someone with a gun ready to fight back, but they don't back down either - they still demand that you give them all of your gold coins or else they'll kill you!
90
 
91
  What do you do? Do you try to reason with them or do you stand firm and fight?
92
+ """
93
+ )
94
 
95
  # Intro_6.txt
96
+ GAME_INTRO_CHOICES.append(
97
+ GAME_HEADER
98
+ + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
99
 
100
  You have been travelling for two weeks and you are now at the foot of the Himalayas. You can see the snow-capped peaks in the distance and it is a daunting sight. You know that this is your most dangerous stretch of the journey, as bandits are known to hide in these mountains and prey on unsuspecting travellers.
101
 
 
106
  What do you do?
107
 
108
  You could try to sneak around them, hoping not to be spotted. Or if that doesn't work out, you could try negotiating with them - offering them some gold coins in exchange for safe passage through their territory. If all else fails, you could always try fighting them off with your revolver - although this would be risky given their numbers and weapons. Whatever choice you make, it's important to stay calm and keep your wits about you so that you can make quick decisions if needed!
109
+ """
110
+ )
111
 
112
  # Intro_7.txt
113
+ GAME_INTRO_CHOICES.append(
114
+ GAME_HEADER
115
+ + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
116
 
117
  You have been travelling for three days, and today is the fourth. You are almost to the border when you hear a voice calling out from the trees. You look up and see five bandits, all armed with magical firearms, standing in a semicircle around you.
118
 
119
  "We're taking your gold," one of them says. "You can either give it to us peacefully or we'll take it by force."
120
 
121
  You know that if you try to fight them off, you'll likely be killed or seriously injured. You also know that if you don't make it home with at least 30 coins, your family will suffer. You must think quickly to decide what to do.
122
+ """
123
+ )
124
 
125
  # Intro_8.txt
126
+ GAME_INTRO_CHOICES.append(
127
+ GAME_HEADER
128
+ + """The year is 603, in an alternate reality fantasy world with a little bit of magic, although you yourself cannot cast spells and the only magical item you own is your revolver. Magically-powered firearms are common, especially six-shooter revolvers, which you and almost everyone carries. You are a seasonal laborer making a once a year summer trek from Tibet across the Himalayas to Nepal to return home to your family with your year's worth of wages which is 100 gold coins. It is very common to be waylaid by bandits who will try to steal some of your gold, or to take some of it for 'protection'. If you make it home with less than 30 coins or do not make it home at all, your family will not be able to afford food to eat.
129
 
130
  You have been travelling for the past two weeks, and you are now close to the border between Tibet and Nepal. You can see the snow-capped peaks of the Himalayas in the distance, but you know that you still have a long way to go before you make it home. You take a break from your journey and set up camp for the night. You light a small fire and settle down for some much needed rest.
131
 
132
  Just as you are about to drift off to sleep, you hear a rustling in the bushes nearby. You draw your revolver and aim it at the source of the noise, ready to fire if necessary. Suddenly, two bandits emerge from the bushes with their own revolvers pointed at you. They demand that you hand over your gold coins or else they will shoot.
133
 
134
  You must make a decision quickly; do you give them your gold coins or fight them?
135
+ """
136
+ )
137
 
138
  # Intro_9.txt
139
+ GAME_INTRO_CHOICES.append(
140
+ GAME_HEADER
141
+ + """
142
+ """
143
+ )
144
 
145
  # Intro_10.txt
146
+ GAME_INTRO_CHOICES.append(
147
+ GAME_HEADER
148
+ + """
149
+ """
150
+ )
151
 
152
  # Intro_11.txt
153
+ GAME_INTRO_CHOICES.append(
154
+ GAME_HEADER
155
+ + """
156
+ """
157
+ )
158
 
159
  # Intro_12.txt
160
+ GAME_INTRO_CHOICES.append(
161
+ GAME_HEADER
162
+ + """
163
+ """
164
+ )
165
 
166
  # Intro_13.txt
167
+ GAME_INTRO_CHOICES.append(
168
+ GAME_HEADER
169
+ + """
170
+ """
171
+ )
172
 
173
  # Intro_14.txt
174
+ GAME_INTRO_CHOICES.append(
175
+ GAME_HEADER
176
+ + """
177
+ """
178
+ )
179
 
180
  # Intro_15.txt
181
+ GAME_INTRO_CHOICES.append(
182
+ GAME_HEADER
183
+ + """
184
+ """
185
+ )
186
 
187
  # Intro_16.txt
188
+ GAME_INTRO_CHOICES.append(
189
+ GAME_HEADER
190
+ + """
191
+ """
192
+ )
193
 
194
  # Intro_17.txt
195
+ GAME_INTRO_CHOICES.append(
196
+ GAME_HEADER
197
+ + """
198
+ """
199
+ )
200
 
201
  # Intro_18.txt
202
+ GAME_INTRO_CHOICES.append(
203
+ GAME_HEADER
204
+ + """
205
+ """
206
+ )
207
 
208
  # Intro_19.txt
209
+ GAME_INTRO_CHOICES.append(
210
+ GAME_HEADER
211
+ + """
212
+ """
213
+ )
214
 
215
  # Intro_20.txt
216
+ GAME_INTRO_CHOICES.append(
217
+ GAME_HEADER
218
+ + """
219
+ """
220
+ )
221
 
222
 
223
  NOTES_TO_THE_NARRATOR_AT_START = """
webpage.py ADDED
The diff for this file is too large to render. See raw diff