Skip to content
Permalink
Browse files
Update Luis's Code (Chapter 3 included)
  • Loading branch information
marti236 committed Mar 3, 2019
1 parent 8168eba commit f4cd4734585efc96bfd82b85918316c9014c3a97
Showing 1 changed file with 66 additions and 66 deletions.
@@ -47,10 +47,11 @@ retry:
std::cout << "\t >> Enter '1' to save the infant" << std::endl;
std::cout << "\t >> Enter '2' to help Arthur" << std::endl;
//this bit here you had as retry not retry2 so i made this section a retry2 section here and line 90
retry2:

retry2:
std::cout << "\nEnter your choice ";
std::cin >> choiceTwo_Path;
if (choiceOne_Path == 1)
if (choiceTwo_Path == 1)
{
std::cout << "# You run to the child, parry the goblin's attack and slice it's stomach" << std::endl;
std::cout << "# Suddenly you hear a loud scream" << std::endl;
@@ -108,7 +109,7 @@ retry:
std::cout << "# Which task are you going to do?" << std::endl;
std::cout << "\t >> Enter '1' to collect food" << std::endl;
std::cout << "\t >> Enter '2' to make a tent" << std::endl;
retry1:
retry1:
std::cout << "\nEnter your choice ";
std::cin >> choiceTwo2_Path;
if (choiceTwo2_Path == 1)
@@ -148,68 +149,67 @@ retry:
case 1: std::cout << "" << std::endl;

case 2: std::cout << "\n!!!----------------------Chapter Three: Surviving inside the forest!----------------------!!!" << std::endl;
std::cout << "Chief: We need to find a way to get out of this massive forest or we'll run out of food and water." << std::endl;
std::cout << "\nYou: Which way do you want to walk?" << std::endl;
std::cout << "Chief: Choose, do what you prefer, I'll agree with your choice." << std::endl;

int choiceTwo2_Path;
std::cout << "# Which task are you going to do?" << std::endl;
std::cout << "\t >> Enter '1' to go North." << std::endl;
std::cout << "\t >> Enter '2' to go South." << std::endl;
std::cout << "\t >> Enter '3' to go East." << std::endl;
std::cout << "\t >> Enter '4' to go West." << std::endl;
retry3:
std::cout << "\nEnter your choice ";
std::cin >> choiceTwo2_Path;
if (choiceTwo2_Path == 1)
{
std::cout << "You: Let's head north!" << std::endl;
std::cout << "\nChief: That's fine, I'll get our stuff and were gonna get going ASAP!" << std::endl;
std::cout << "# You hear a twig snap and go on high alert. It ends up being a wild bear that stares at you with a dumbass face." << std::endl;
std::cout << "# Your heart starts pumping a thousand per second but it ends up that the bear is just hanging around and it's no harm to you." << std::endl;
std::cout << "Chief: That's the closest i have been of dying." << std::endl;
std::cout << "# Before you continue on your trip to leave the forest you help the bear to get some food. " << std::endl;
system("PAUSE");
return 0;
}
else if (choiceTwo2_Path == 2)
{
std::cout << "You: Let's head south!" << std::endl;
std::cout << "\nChief: That's fine, I'll get our stuff and were gonna get going ASAP!" << std::endl;
std::cout << "# You hear a twig snap and go on high alert. It ends up being a wild deer that runs away because you scared him." << std::endl;
std::cout << "Chief: I hope they weren´t so shy so I could pet them." << std::endl;
std::cout << "# You continue your trip to leave the forest. " << std::endl;
system("PAUSE");
return 0;
}
else if (choiceTwo2_Path == 3)
{
std::cout << "You: Let's head East!" << std::endl;
std::cout << "\nChief: That's fine, I'll get our stuff and were gonna get going ASAP!" << std::endl;
std::cout << "# You hear a twig snap and go on high alert. It ends up being a wild boar that prepares to attack you." << std::endl;
std::cout << "# You start thinking of all things that would help you dodge the wild boars attack and be able to run away safely." << std::endl;
std::cout << "# You both start running in zigzags so the boar gets confused and stops chasing you, fortunately, it works." << std::endl;
std::cout << "Chief: That was close, i think i need some washed underpants." << std::endl;
std::cout << "# You continue your trip to leave the forest. " << std::endl;
system("PAUSE");
return 0;
}
else if (choiceTwo2_Path == 4)
{
std::cout << "You: Let's head West!" << std::endl;
std::cout << "\nChief: That's fine, I'll get our stuff and were gonna get going ASAP!" << std::endl;
std::cout << "# You hear a twig snap and go on high alert. It ends up being a little squirrel that is looking for something to eat." << std::endl;
std::cout << "# You remember that you have some nuts in your bag, so you share some with the little squirrel before you go on your trip." << std::endl;
std::cout << "Chief: They are such cute animals." << std::endl;
std::cout << "# You continue your trip to leave the forest. " << std::endl;
system("PAUSE");
return 0;
}
else
{
std::cout << "You're doing it wrong hero! Press either '1' or '2' or '3' or '4', that's all!" << std::endl;
goto retry3;
}
std::cout << "Chief: We need to find a way to get out of this massive forest or we'll run out of food and water." << std::endl;
std::cout << "\nYou: Which way do you want to walk?" << std::endl;
std::cout << "Chief: Choose, do what you prefer, I'll agree with your choice." << std::endl;

int choiceThree_Path;
std::cout << "# Which way are you going?" << std::endl;
std::cout << "\t >> Enter '1' to go North." << std::endl;
std::cout << "\t >> Enter '2' to go South." << std::endl;
std::cout << "\t >> Enter '3' to go East." << std::endl;
std::cout << "\t >> Enter '4' to go West." << std::endl;
retry3:
std::cout << "\nEnter your choice ";
std::cin >> choiceThree_Path;
if (choiceThree_Path == 1)
{
std::cout << "You: Let's head north!" << std::endl;
std::cout << "\nChief: That's fine, I'll get our stuff and were gonna get going ASAP!" << std::endl;
std::cout << "# You hear a twig snap and go on high alert. It ends up being a wild bear that stares at you with a dumbass face." << std::endl;
std::cout << "# Your heart starts pumping a thousand per second but it ends up that the bear is just hanging around and it's no harm to you." << std::endl;
std::cout << "Chief: That's the closest i have been of dying." << std::endl;
std::cout << "# Before you continue on your trip to leave the forest you help the bear to get some food. " << std::endl;
system("PAUSE");
return 0;
}
else if (choiceThree_Path == 2)
{
std::cout << "You: Let's head south!" << std::endl;
std::cout << "\nChief: That's fine, I'll get our stuff and were gonna get going ASAP!" << std::endl;
std::cout << "# You hear a twig snap and go on high alert. It ends up being a wild deer that runs away because you scared him." << std::endl;
std::cout << "Chief: I hope they weren´t so shy so I could pet them." << std::endl;
std::cout << "# You continue your trip to leave the forest. " << std::endl;
system("PAUSE");
return 0;
}
else if (choiceThree_Path == 3)
{
std::cout << "You: Let's head East!" << std::endl;
std::cout << "\nChief: That's fine, I'll get our stuff and were gonna get going ASAP!" << std::endl;
std::cout << "# You hear a twig snap and go on high alert. It ends up being a wild boar that prepares to attack you." << std::endl;
std::cout << "# You start thinking of all things that would help you dodge the wild boars attack and be able to run away safely." << std::endl;
std::cout << "# You both start running in zigzags so the boar gets confused and stops chasing you, fortunately, it works." << std::endl;
std::cout << "Chief: That was close, i think i need some washed underpants." << std::endl;
std::cout << "# You continue your trip to leave the forest. " << std::endl;
system("PAUSE");
return 0;
}
else if (choiceThree_Path == 4)
{
std::cout << "You: Let's head West!" << std::endl;
std::cout << "\nChief: That's fine, I'll get our stuff and were gonna get going ASAP!" << std::endl;
std::cout << "# You hear a twig snap and go on high alert. It ends up being a little squirrel that is looking for something to eat." << std::endl;
std::cout << "# You remember that you have some nuts in your bag, so you share some with the little squirrel before you go on your trip." << std::endl;
std::cout << "Chief: They are such cute animals." << std::endl;
std::cout << "# You continue your trip to leave the forest. " << std::endl;
system("PAUSE");
return 0;
}
else
{
std::cout << "You're doing it wrong hero! Press either '1' or '2' or '3' or '4', that's all!" << std::endl;
goto retry3;
}
}
}
#see description, there is some errors in the code

0 comments on commit f4cd473

Please sign in to comment.