Exemplo n.º 1
0
 //Update method clears the screen, and prints the map with player's location in square bracket.
 //It also prints player's previous location
 public static void Update()
 {
     Console.Clear();
     Map.PrintCaverns(size);
     if (move != 0)
     {
         Console.WriteLine($"==========================\nYou were in cavern: {Map.PlayerPreviousLoc()}");
     }
     Map.CheckCavern(size);
     Console.WriteLine($"You are in Cavern:  {Map.PlayerCurrentLoc()}\n==========================");
     //PlayerPreviousLocation = Map.PlayerCurrentLoc();
 }