public static class Global{
public static int health = 6;
Console.Write("The last thing you remember is the storm. The winds roared like a hungry beast, tearing at the sails. The deck lurched beneath your feet as the waves swallowed your ship whole, dragging it into the abyss. You tried to hold on, tried to fight but then Something struck you A mast breaking free? A wave crashing over the side? A sudden, crushing darkness Now you wake up. Your head pounds. Your body aches. The air is thick with the stench of salt, rot, and death. A lantern sways overhead, casting eerie shadows along the damp, rotting wooden walls. The floor beneath you is slick sea water, or something worse? Chains rattle. You glance down at your wrists are bound. Rusted metal, corroded from years at sea, but still strong. You're in a cell. Not on your ship. Not anywhere you recognize. Then you see him.A man sits in the corner of the cell, half-hidden in the shadows. His clothes are tattered, and waterlogged, his skin pale and sickly, like he hasn't seen the sun in years. His eyes flicker toward you, dark and hollow. He knows something. And you get the feeling that talking to him might be the only way to figure out what the hell is going on.");
Console.WriteLine("\nA: Go talk to the man \nB: I'd rather not");
string man = Console.ReadLine().ToUpper();
while (man != "A" && man != "B")
Console.WriteLine("\nPlease select A or B");
man = Console.ReadLine();
Console.WriteLine("\nyou should really go talk to the man");
Console.WriteLine("\nA: Go talk to the man \nB: I'd rather not");
man = Console.ReadLine();
Console.Write("The man doesnt react at first. He sits perfectly still, head tilted forward, like hes listening to something you cant hear. Then, without looking up, he speaks. His voice is low, hollow, like it's coming from deep underwater. \"You drowned.\" Your blood runs cold. \"You're on the Flying Dutchman now. The ship of the damned. Everyone on board is dead just like you.\" You shake your head. No. Thats impossible. You were just on your ship. There has to be a way back. The man finally looks up. His eyes are dark and empty, like theyve seen too much for too long. \"Theres only one way off this ship.\" He leans forward, his expression unreadable. \"You have to kill the captain.\" The words hang in the air like a death sentence. Above, footsteps echo on the deck. The ship groans, almost like its listening. And suddenly you realize the chains on your wrists? They're unlocked.\n ");
Console.WriteLine("\nNow you need to get out of here...");
Console.WriteLine("\n to move use north,south,west,east");
Console.WriteLine("\n you are now in the hallway of the lower deck. The stench in horrid. The ground is slippery and it is very dark. You look around and see other dead rotting souls, boxes and crates stored up, and the footsteps of the crew above you. You must explore this level of the ship, for supplies, information and the way out and find the captain");
movement = Console.ReadLine().ToLower();
if (movement == "north" && x > 0 )
Console.WriteLine("you are at a cell wall. They are locked");
Console.WriteLine(bottomLayer[x,y]);
Console.WriteLine("\nYou have moved north");
else if (movement == "south" && x < 6)
Console.WriteLine(bottomLayer[x,y]);
Console.WriteLine("\nYou have moved south");
else if (movement == "west" && y > 0)
Console.WriteLine(bottomLayer[x,y]);
Console.WriteLine("\nYou have moved west");
else if (movement == "east" && y < 2)
if (y == 1 && x>= 1 && x<=4)
Console.WriteLine("you are at a cell wall. They are locked");
Console.WriteLine(bottomLayer[x,y]);
Console.WriteLine("\nYou have moved east");
Console.WriteLine("You are very hungry!!");
Console.WriteLine("Do you want to open the crate?");
OpenCrate = Console.ReadLine().ToLower();
Console.WriteLine("there is some old bread and dryed fish in the crate");
Console.WriteLine(" do you want to eat the bread and fish");
Eat = Console.ReadLine().ToLower();
Console.WriteLine("You probably should eat somthing you have not eaten in a while");
Eat = Console.ReadLine().ToLower();
Console.WriteLine("you eat the fish and bread and now you fell better");
Console.WriteLine(" your heal is now " + Global.health);
bool lookedOutside = false;
Console.WriteLine("\n Here are your Options:");
Console.WriteLine("B. Check out the skeleton in the corner");
Console.WriteLine("C. Ask the man more questions");
Console.WriteLine("D. Search the cell for something to break the bars");
Console.Write("Enter your choice (A-D): ");
choice = Console.ReadLine().ToUpper();
Console.WriteLine("\nThe skeleton looks ancient. Its bony fingers are curled around something...");
Console.WriteLine("\nYou turn to speak to the man... but he has disappeared.");
Console.WriteLine("\nYou search every inch of the cell, but find nothing useful.");
Console.WriteLine("\nInvalid choice. Try again.");
Console.WriteLine("\n Here are your Options:");
Console.WriteLine("A. Look outside the cell");
Console.WriteLine("B. Check out the skeleton in the corner");
Console.WriteLine("C. Ask the man more questions");
Console.WriteLine("D. Search the cell");
Console.Write("Enter your choice (A-D): ");
choice = Console.ReadLine().ToUpper();
Console.WriteLine("\nYou see a sleeping dog holding a set of keys.");
Console.WriteLine("\nThe skeleton looks ancient. Its bony fingers are curled around something...");
Console.WriteLine("\nYou turn to speak to the man... but he has disappeared.");
Console.WriteLine("\nYou search every inch of the cell, but find nothing useful.");
Console.WriteLine("\nInvalid choice. Try again.");
Console.WriteLine("\nNew options:");
Console.WriteLine("E. Call the dog");
Console.WriteLine("F. Try to reach the dog");
Console.WriteLine("B. Check out the skeleton again");
Console.Write("Enter your choice: ");
choice = Console.ReadLine().ToUpper();
Console.WriteLine("\nYou call out to the dog, but it doesn't wake up.");
Console.WriteLine("\nYou stretch your arm, but the dog is just out of reach.");
Console.WriteLine("\nYou take a bone from the skeleton's grasp.");
Console.WriteLine("\nInvalid choice. Try again.");
Console.WriteLine("\nYou offer the bone to the dog.");
Console.WriteLine("The dog stirs, sniffs the bone, then eagerly takes it and drops the keys.");
Console.WriteLine("You pick up the keys. You are free!");
Console.WriteLine("\nCongratulations! You have escaped the cell.");