public const int EnduranceUsed = 15;
public const int WebFluidUsed = 47;
public const int TotalFloors = 10;
public static int CurrentFloor;
public static int Endurance;
public static int WebFluid;
public static void gameBegins() {
Console.WriteLine("Game begins!");
public static void Main(string[] args)
Console.WriteLine("MaryJane is stuck on the top of a building with " + TotalFloors + " Floors.");
for (gameBegins(); CurrentFloor > 0 && CurrentFloor <= TotalFloors;)
Console.WriteLine("Spidey is on floor " + CurrentFloor + ". He has " + Endurance + "% endurance and " + WebFluid + " ml of web fluid remaining.");
if (CurrentFloor == TotalFloors)
Console.WriteLine("Spidey made it to the top and saved MJ.");
else if (CurrentFloor < TotalFloors)
if (Endurance > 0 && WebFluid > 0)
else if (Endurance > 0 && WebFluid <= 0)
Console.WriteLine("*** Spidey doesnt have any web fluid left, so he has to climb.");
else if (Endurance <= 0 && WebFluid > 0)
Console.WriteLine("*** Spidey doesn't have any endurance left, so he has to sling some web.");
Console.WriteLine("Spidey has failed, and fallen off the building. The villain threw MJ off the top. SPLAT! SPLAT!");
Console.WriteLine("Error: Invalid floor number in for() loop.");
Console.WriteLine("(End of loop trap for testing porpoises.)");
Console.WriteLine("Spidey has a choice to make. Will he (c)limb or (s)ling some web?");
switch (Console.ReadLine())
Console.WriteLine("You have chosen to have Spidey climb.");
Console.WriteLine("You have chosen to have Spidey sling some web.");
Console.WriteLine("Spidey decides he didn't really like MJ that much anyway, and walks away");
Console.WriteLine("Spidey lives, MJ gets tossed off the roof and SPLAT!");
Console.WriteLine("Spidey saw that there was an elevator, and rode it to the roof");
CurrentFloor = TotalFloors;
We're no strangers to love
You know the rules and so do I
A full commitment's what I'm thinking of
You wouldn't get this from any other guy
I just wanna tell you how I'm feeling
Gotta make you understand
Never gonna run around and desert you
Never gonna tell a lie and hurt you
We've known each other for so long
Your heart's been aching but you're too shy to say it
Inside we both know what's been going on
We know the game and we're gonna play it
And if you ask me how I'm feeling
Don't tell me you're too blind to see
Never gonna run around and desert you
Console.WriteLine("You have made an invalid choice, please try again...");
if ((WebFluid = WebFluid - WebFluidUsed) < 0)
Console.WriteLine("Spidey has used web to go from floor " + CurrentFloor + " to floor " + ++CurrentFloor + " and has used " + WebFluidUsed + " ml of web fluid.");
if ((Endurance = Endurance - EnduranceUsed) < 0)
Console.WriteLine("Spidey has climbed from floor " + CurrentFloor + " to floor " + ++CurrentFloor + " and has used " + EnduranceUsed + "% endurance.");
Console.Write("Game over. Play again? (y/n) ");
if (Console.ReadLine() == "y")