Python - Text Adventure The 2019 Stack Overflow Developer Survey Results Are InA small Python...
What do hard-Brexiteers want with respect to the Irish border?
Lethal sonic weapons
Inline version of a function returns different value then non-inline version
Inflated grade on resume at previous job, might former employer tell new employer?
Why isn't airport relocation done gradually?
How to change the limits of integration
Landlord wants to switch my lease to a "Land contract" to "get back at the city"
Access elements in std::string where positon of string is greater than its size
Why is it "Tumoren" and not "Tumore"?
Manuscript was "unsubmitted" because the manuscript was deposited in Arxiv Preprints
A poker game description that does not feel gimmicky
How to deal with fear of taking dependencies
Inversion Puzzle
Are there any other methods to apply to solving simultaneous equations?
Is bread bad for ducks?
Understanding the implication of what "well-defined" means for the operation in quotient group
How come people say “Would of”?
What does "rabbited" mean/imply in this sentence?
Why could you hear an Amstrad CPC working?
What do the Banks children have against barley water?
Is this food a bread or a loaf?
How can I create a character who can assume the widest possible range of creature sizes?
Does light intensity oscillate really fast since it is a wave?
Could JWST stay at L2 "forever"?
Python - Text Adventure
The 2019 Stack Overflow Developer Survey Results Are InA small Python text adventure “frame”A small text adventure in PythonSimple text adventure gameBasic nonlinear Python text adventure gamePython graph challengeText Adventure Game in PythonComputing the total property management fee for propertiesPython text adventurePython 2.7 text adventure map and movementPython 3 text adventure game
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
$begingroup$
I need help simplifying this Python code. I'm new, this adventure game is one of my first projects. I have tried simplifying my code already and this was the best result I could get.
import time
import random
r = random.randrange(10)
#r is the weapon being used for gun
#pauses the story
def print_pause(lines):
for line, pause in lines:
print(line)
time.sleep(pause)
def print_sep():
print("You chose " + answer + ".")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
def game_over():
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("""
___
/ __|__ _ _ __ ___ _____ _____ _ _
| (_ / _` | ' / -_) / _ V / -_) '_|
_____,_|_|_|____| ___/_/___|_|
""")
def win():
print("""
_ _ _
| | | | (_)
| |___| | ___ _ _ _ _ _ _ ____
|_____ |/ _ | | | | | | | | | _
_____| | |_| | |_| | | | | | | | | |
(_______|___/|____/ ___/|_|_| |_|
""")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("Soviet Union, 1988")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
time.sleep(1)
name = input("Comrade, what is your name?")
print_pause([
("-- KGB Offices, Moscow --", 1),
("Glory to the party and the glorious leader, " + name + ".", 2),
("You were arrested after participating in a democratic protest innKazan yesterday. My name is Vladimir; tell me what happened.", 3),
("Do you: n A: Tell the KGB officer everything n B: Say nothing", 0) #how many seconds to rest
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("You tell Vladimir everything; and he approaches you with anlucrative offer.", 3),
("You have a one time opportunity to join the KGB, otherwise you face prison time.", 3),
("Do you: n A: Accept the offer n B: Decline the offer", 3)
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("Agent " + name + ", welcome to the KGB.", 1),
("Here is your badge and gun; your first task; help us arrest knownndissident guards at the Inner German border.", 3),
("You are sent to the Inner German border; and soon you are feet away from West Germany. Do you escape?", 3),
("Do you: n A: Escape n B: Continue on your mission", 3)
])
answer = input("A or B?")
print_sep()
if answer == "A":
if r > 5:
print_pause([
("Success, you escaped from the Eastern Bloc.", 2),
("Wait another 3 years, and all of communism collapses.", 2)
])
win()
else:
print_pause([
("As you try to climb across the border, you step on an infamousnSM-70 mine.", 3),
("80 steel cubes rip into your body.", 2)
])
game_over()
elif answer == "B":
print_pause([
("You find the guard dissident, and you shout 'HALT!'", 2),
("He whips around, but before he can shoot you, you tackle him to the ground", 3),
("For the rest of your life, you continue to work for the KGB, and retire comfortably after the collapse of the USSR", 3)
])
win()
elif answer == "B":
print_pause([
("Prison, like Vladimir said, is your new home.", 2),
("But the USSR collapses in 1991; so you are free to go after 3 years!", 3),
("Unfortunately the KGB wants you to keep quiet about what you wentnthrough so a splinter faction kills you to make sure you don't leaknany info.", 3)
])
game_over()
elif answer == "B":
print_pause([
("You are tortured for days on by Vladimir.", 2),
("Just when you think you lost all hope, you find an opportunity: his pistol left on the table.", 2),
("Do you:n A: Grab the pistol n B: Leave it on the table", 2.5)
])
answer = input("A or B?")
print_sep()
if answer == "A":
if r > 5:
print_pause([
("You pick up the pistol. It's a Makarov; standard issue for KGB. You fire!nThe bullet whizzes through the air... and hits it's mark!", 3),
("Vladimir lies in a pool of blood as you run." , 2),
("Do you: n A: Run away n B: Surrender", 2)
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("You escape... barely.", 2),
("You spend the rest of your years in hiding until your charges are dropped after the dissolution of the USSR.", 3)
])
win()
elif answer == "B":
print_pause([
("Bad choice... the USSR carries the death penalty for murder cases.", 2)
("I'll leave the rest to your imagination.", 2)
])
game_over()
else:
print_pause([
("You shoot, and the bullet whizzes past Vladimir, hitting the wall.", 3),
("He easily whips around and chokes you to death with the ferocity of a bear." , 2)
])
game_over()
elif answer == "B":
print_pause([
("You tried your best, but eventually you gave up.", 2),
("You told Vladimir everything, and a show trial exiles you to a gulag.", 2),
("The rest of your days you spend working in the Siberian cold.", 2)
])
game_over()
python beginner adventure-game
New contributor
$endgroup$
add a comment |
$begingroup$
I need help simplifying this Python code. I'm new, this adventure game is one of my first projects. I have tried simplifying my code already and this was the best result I could get.
import time
import random
r = random.randrange(10)
#r is the weapon being used for gun
#pauses the story
def print_pause(lines):
for line, pause in lines:
print(line)
time.sleep(pause)
def print_sep():
print("You chose " + answer + ".")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
def game_over():
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("""
___
/ __|__ _ _ __ ___ _____ _____ _ _
| (_ / _` | ' / -_) / _ V / -_) '_|
_____,_|_|_|____| ___/_/___|_|
""")
def win():
print("""
_ _ _
| | | | (_)
| |___| | ___ _ _ _ _ _ _ ____
|_____ |/ _ | | | | | | | | | _
_____| | |_| | |_| | | | | | | | | |
(_______|___/|____/ ___/|_|_| |_|
""")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("Soviet Union, 1988")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
time.sleep(1)
name = input("Comrade, what is your name?")
print_pause([
("-- KGB Offices, Moscow --", 1),
("Glory to the party and the glorious leader, " + name + ".", 2),
("You were arrested after participating in a democratic protest innKazan yesterday. My name is Vladimir; tell me what happened.", 3),
("Do you: n A: Tell the KGB officer everything n B: Say nothing", 0) #how many seconds to rest
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("You tell Vladimir everything; and he approaches you with anlucrative offer.", 3),
("You have a one time opportunity to join the KGB, otherwise you face prison time.", 3),
("Do you: n A: Accept the offer n B: Decline the offer", 3)
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("Agent " + name + ", welcome to the KGB.", 1),
("Here is your badge and gun; your first task; help us arrest knownndissident guards at the Inner German border.", 3),
("You are sent to the Inner German border; and soon you are feet away from West Germany. Do you escape?", 3),
("Do you: n A: Escape n B: Continue on your mission", 3)
])
answer = input("A or B?")
print_sep()
if answer == "A":
if r > 5:
print_pause([
("Success, you escaped from the Eastern Bloc.", 2),
("Wait another 3 years, and all of communism collapses.", 2)
])
win()
else:
print_pause([
("As you try to climb across the border, you step on an infamousnSM-70 mine.", 3),
("80 steel cubes rip into your body.", 2)
])
game_over()
elif answer == "B":
print_pause([
("You find the guard dissident, and you shout 'HALT!'", 2),
("He whips around, but before he can shoot you, you tackle him to the ground", 3),
("For the rest of your life, you continue to work for the KGB, and retire comfortably after the collapse of the USSR", 3)
])
win()
elif answer == "B":
print_pause([
("Prison, like Vladimir said, is your new home.", 2),
("But the USSR collapses in 1991; so you are free to go after 3 years!", 3),
("Unfortunately the KGB wants you to keep quiet about what you wentnthrough so a splinter faction kills you to make sure you don't leaknany info.", 3)
])
game_over()
elif answer == "B":
print_pause([
("You are tortured for days on by Vladimir.", 2),
("Just when you think you lost all hope, you find an opportunity: his pistol left on the table.", 2),
("Do you:n A: Grab the pistol n B: Leave it on the table", 2.5)
])
answer = input("A or B?")
print_sep()
if answer == "A":
if r > 5:
print_pause([
("You pick up the pistol. It's a Makarov; standard issue for KGB. You fire!nThe bullet whizzes through the air... and hits it's mark!", 3),
("Vladimir lies in a pool of blood as you run." , 2),
("Do you: n A: Run away n B: Surrender", 2)
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("You escape... barely.", 2),
("You spend the rest of your years in hiding until your charges are dropped after the dissolution of the USSR.", 3)
])
win()
elif answer == "B":
print_pause([
("Bad choice... the USSR carries the death penalty for murder cases.", 2)
("I'll leave the rest to your imagination.", 2)
])
game_over()
else:
print_pause([
("You shoot, and the bullet whizzes past Vladimir, hitting the wall.", 3),
("He easily whips around and chokes you to death with the ferocity of a bear." , 2)
])
game_over()
elif answer == "B":
print_pause([
("You tried your best, but eventually you gave up.", 2),
("You told Vladimir everything, and a show trial exiles you to a gulag.", 2),
("The rest of your days you spend working in the Siberian cold.", 2)
])
game_over()
python beginner adventure-game
New contributor
$endgroup$
$begingroup$
Welcome to Code Review! I hope you get some great answers.
$endgroup$
– Phrancis
41 mins ago
add a comment |
$begingroup$
I need help simplifying this Python code. I'm new, this adventure game is one of my first projects. I have tried simplifying my code already and this was the best result I could get.
import time
import random
r = random.randrange(10)
#r is the weapon being used for gun
#pauses the story
def print_pause(lines):
for line, pause in lines:
print(line)
time.sleep(pause)
def print_sep():
print("You chose " + answer + ".")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
def game_over():
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("""
___
/ __|__ _ _ __ ___ _____ _____ _ _
| (_ / _` | ' / -_) / _ V / -_) '_|
_____,_|_|_|____| ___/_/___|_|
""")
def win():
print("""
_ _ _
| | | | (_)
| |___| | ___ _ _ _ _ _ _ ____
|_____ |/ _ | | | | | | | | | _
_____| | |_| | |_| | | | | | | | | |
(_______|___/|____/ ___/|_|_| |_|
""")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("Soviet Union, 1988")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
time.sleep(1)
name = input("Comrade, what is your name?")
print_pause([
("-- KGB Offices, Moscow --", 1),
("Glory to the party and the glorious leader, " + name + ".", 2),
("You were arrested after participating in a democratic protest innKazan yesterday. My name is Vladimir; tell me what happened.", 3),
("Do you: n A: Tell the KGB officer everything n B: Say nothing", 0) #how many seconds to rest
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("You tell Vladimir everything; and he approaches you with anlucrative offer.", 3),
("You have a one time opportunity to join the KGB, otherwise you face prison time.", 3),
("Do you: n A: Accept the offer n B: Decline the offer", 3)
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("Agent " + name + ", welcome to the KGB.", 1),
("Here is your badge and gun; your first task; help us arrest knownndissident guards at the Inner German border.", 3),
("You are sent to the Inner German border; and soon you are feet away from West Germany. Do you escape?", 3),
("Do you: n A: Escape n B: Continue on your mission", 3)
])
answer = input("A or B?")
print_sep()
if answer == "A":
if r > 5:
print_pause([
("Success, you escaped from the Eastern Bloc.", 2),
("Wait another 3 years, and all of communism collapses.", 2)
])
win()
else:
print_pause([
("As you try to climb across the border, you step on an infamousnSM-70 mine.", 3),
("80 steel cubes rip into your body.", 2)
])
game_over()
elif answer == "B":
print_pause([
("You find the guard dissident, and you shout 'HALT!'", 2),
("He whips around, but before he can shoot you, you tackle him to the ground", 3),
("For the rest of your life, you continue to work for the KGB, and retire comfortably after the collapse of the USSR", 3)
])
win()
elif answer == "B":
print_pause([
("Prison, like Vladimir said, is your new home.", 2),
("But the USSR collapses in 1991; so you are free to go after 3 years!", 3),
("Unfortunately the KGB wants you to keep quiet about what you wentnthrough so a splinter faction kills you to make sure you don't leaknany info.", 3)
])
game_over()
elif answer == "B":
print_pause([
("You are tortured for days on by Vladimir.", 2),
("Just when you think you lost all hope, you find an opportunity: his pistol left on the table.", 2),
("Do you:n A: Grab the pistol n B: Leave it on the table", 2.5)
])
answer = input("A or B?")
print_sep()
if answer == "A":
if r > 5:
print_pause([
("You pick up the pistol. It's a Makarov; standard issue for KGB. You fire!nThe bullet whizzes through the air... and hits it's mark!", 3),
("Vladimir lies in a pool of blood as you run." , 2),
("Do you: n A: Run away n B: Surrender", 2)
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("You escape... barely.", 2),
("You spend the rest of your years in hiding until your charges are dropped after the dissolution of the USSR.", 3)
])
win()
elif answer == "B":
print_pause([
("Bad choice... the USSR carries the death penalty for murder cases.", 2)
("I'll leave the rest to your imagination.", 2)
])
game_over()
else:
print_pause([
("You shoot, and the bullet whizzes past Vladimir, hitting the wall.", 3),
("He easily whips around and chokes you to death with the ferocity of a bear." , 2)
])
game_over()
elif answer == "B":
print_pause([
("You tried your best, but eventually you gave up.", 2),
("You told Vladimir everything, and a show trial exiles you to a gulag.", 2),
("The rest of your days you spend working in the Siberian cold.", 2)
])
game_over()
python beginner adventure-game
New contributor
$endgroup$
I need help simplifying this Python code. I'm new, this adventure game is one of my first projects. I have tried simplifying my code already and this was the best result I could get.
import time
import random
r = random.randrange(10)
#r is the weapon being used for gun
#pauses the story
def print_pause(lines):
for line, pause in lines:
print(line)
time.sleep(pause)
def print_sep():
print("You chose " + answer + ".")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
def game_over():
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("""
___
/ __|__ _ _ __ ___ _____ _____ _ _
| (_ / _` | ' / -_) / _ V / -_) '_|
_____,_|_|_|____| ___/_/___|_|
""")
def win():
print("""
_ _ _
| | | | (_)
| |___| | ___ _ _ _ _ _ _ ____
|_____ |/ _ | | | | | | | | | _
_____| | |_| | |_| | | | | | | | | |
(_______|___/|____/ ___/|_|_| |_|
""")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("Soviet Union, 1988")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
time.sleep(1)
name = input("Comrade, what is your name?")
print_pause([
("-- KGB Offices, Moscow --", 1),
("Glory to the party and the glorious leader, " + name + ".", 2),
("You were arrested after participating in a democratic protest innKazan yesterday. My name is Vladimir; tell me what happened.", 3),
("Do you: n A: Tell the KGB officer everything n B: Say nothing", 0) #how many seconds to rest
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("You tell Vladimir everything; and he approaches you with anlucrative offer.", 3),
("You have a one time opportunity to join the KGB, otherwise you face prison time.", 3),
("Do you: n A: Accept the offer n B: Decline the offer", 3)
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("Agent " + name + ", welcome to the KGB.", 1),
("Here is your badge and gun; your first task; help us arrest knownndissident guards at the Inner German border.", 3),
("You are sent to the Inner German border; and soon you are feet away from West Germany. Do you escape?", 3),
("Do you: n A: Escape n B: Continue on your mission", 3)
])
answer = input("A or B?")
print_sep()
if answer == "A":
if r > 5:
print_pause([
("Success, you escaped from the Eastern Bloc.", 2),
("Wait another 3 years, and all of communism collapses.", 2)
])
win()
else:
print_pause([
("As you try to climb across the border, you step on an infamousnSM-70 mine.", 3),
("80 steel cubes rip into your body.", 2)
])
game_over()
elif answer == "B":
print_pause([
("You find the guard dissident, and you shout 'HALT!'", 2),
("He whips around, but before he can shoot you, you tackle him to the ground", 3),
("For the rest of your life, you continue to work for the KGB, and retire comfortably after the collapse of the USSR", 3)
])
win()
elif answer == "B":
print_pause([
("Prison, like Vladimir said, is your new home.", 2),
("But the USSR collapses in 1991; so you are free to go after 3 years!", 3),
("Unfortunately the KGB wants you to keep quiet about what you wentnthrough so a splinter faction kills you to make sure you don't leaknany info.", 3)
])
game_over()
elif answer == "B":
print_pause([
("You are tortured for days on by Vladimir.", 2),
("Just when you think you lost all hope, you find an opportunity: his pistol left on the table.", 2),
("Do you:n A: Grab the pistol n B: Leave it on the table", 2.5)
])
answer = input("A or B?")
print_sep()
if answer == "A":
if r > 5:
print_pause([
("You pick up the pistol. It's a Makarov; standard issue for KGB. You fire!nThe bullet whizzes through the air... and hits it's mark!", 3),
("Vladimir lies in a pool of blood as you run." , 2),
("Do you: n A: Run away n B: Surrender", 2)
])
answer = input("A or B?")
print_sep()
if answer == "A":
print_pause([
("You escape... barely.", 2),
("You spend the rest of your years in hiding until your charges are dropped after the dissolution of the USSR.", 3)
])
win()
elif answer == "B":
print_pause([
("Bad choice... the USSR carries the death penalty for murder cases.", 2)
("I'll leave the rest to your imagination.", 2)
])
game_over()
else:
print_pause([
("You shoot, and the bullet whizzes past Vladimir, hitting the wall.", 3),
("He easily whips around and chokes you to death with the ferocity of a bear." , 2)
])
game_over()
elif answer == "B":
print_pause([
("You tried your best, but eventually you gave up.", 2),
("You told Vladimir everything, and a show trial exiles you to a gulag.", 2),
("The rest of your days you spend working in the Siberian cold.", 2)
])
game_over()
python beginner adventure-game
python beginner adventure-game
New contributor
New contributor
edited 3 mins ago
200_success
131k17157422
131k17157422
New contributor
asked 2 hours ago
MattthecommieMattthecommie
112
112
New contributor
New contributor
$begingroup$
Welcome to Code Review! I hope you get some great answers.
$endgroup$
– Phrancis
41 mins ago
add a comment |
$begingroup$
Welcome to Code Review! I hope you get some great answers.
$endgroup$
– Phrancis
41 mins ago
$begingroup$
Welcome to Code Review! I hope you get some great answers.
$endgroup$
– Phrancis
41 mins ago
$begingroup$
Welcome to Code Review! I hope you get some great answers.
$endgroup$
– Phrancis
41 mins ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
});
});
}, "mathjax-editing");
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "196"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Mattthecommie is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f217164%2fpython-text-adventure%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Mattthecommie is a new contributor. Be nice, and check out our Code of Conduct.
Mattthecommie is a new contributor. Be nice, and check out our Code of Conduct.
Mattthecommie is a new contributor. Be nice, and check out our Code of Conduct.
Mattthecommie is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Code Review Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f217164%2fpython-text-adventure%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
Welcome to Code Review! I hope you get some great answers.
$endgroup$
– Phrancis
41 mins ago