Right here I'm trying to create a game style map where the integer p represents my character. My issue right here is I tried various ways to make my character move on the map but I'm out of ideas as to how. So far I tried to test where by pressing w my character should go northward from its initial position but nothing happens. I tried using "if (Map[10][20] == p){row--;}" or "if (Map[10][20] == p){row -= row;}". My directional control will be using "wasd" key.
Well, move doesn't have a value when it is tested in line 25 - where were you intending to input it? Similarly, most of Map doesn't have any value, but it is still tested in line 26.
Just use while (!gameover)
rather than while (gameover == false)
Because of the map entity in the Standard Template Library, I would be hesitant about calling your array Map.
Best to separate these into methods. You would want an initializing method to give the array values, have a redraw or refresh methods that has your loops to clear the screen then draw the current state of the array to the screen. Then have a move method that takes in your move variable.