static void Main(string[] args) { Player myPlayer = new Player(0, null, 0, 0, 0, 0, null, null, null); List <Player> myPlayers = new List <Player>(); Mob currentMob = new Mob(0, null, 0, 0, 0, 0); Potion currentPotion = new Potion(0, null, 0, 0, 0, 0); bool exit = false; do { // Ask user to either run the program or exit StandardMessages.DisplayOpeningMenu(); // Declare varible to hold user input string input = Console.ReadLine(); if (input == "1") { // Local variables // Display description of the program StandardMessages.DisplayProgramDescription(); // Consume the next line for appearance Console.WriteLine(""); // Get player profile myPlayer = PlayerFile.GetPlayer(myPlayer, myPlayers); // Get player's weapon Player.CurrentWeapon = Player.GetCurrentWeapon(myPlayer); // Get player's default damage myPlayer.Damage = Player.GetPlayerDamage(myPlayer); // Get player's default AC myPlayer.AC = Player.GetPlayerAC(myPlayer); // Get player's default HP myPlayer.HP = Player.GetPlayerHP(myPlayer); // Display player information DisplayPlayerStats(myPlayer); // Consume the next line for appearance Console.WriteLine(""); //// Display room names for testing (remove later) //Console.WriteLine("Rooms:"); //foreach(Room room in GameAttributes.rooms) //{ // Console.WriteLine($"{room.Name}"); //} //// Consume the next line for appearance //Console.WriteLine(""); //// Display weapon names for testing (remove later) //Console.WriteLine("Weapons:"); //foreach (Weapon weapon in GameAttributes.weapons) //{ // Console.WriteLine($"{weapon.Type} - {weapon.Name}"); //} //// Consume the next line for appearance //Console.WriteLine(""); // Get player movement Console.WriteLine("Enter 'north', 'south', 'east', or 'west' to move between locations."); // Consume the next line for appearance Console.WriteLine(""); GetPlayerMovement(myPlayer, currentMob, currentPotion); } else if (input == "2") { exit = true; } else { StandardMessages.DisplayOpeningMenuError(); } } while (exit == false); }