Java 在地图上设置位置并在基于文本的地图中移动

Java 在地图上设置位置并在基于文本的地图中移动,java,dictionary,multidimensional-array,direction,Java,Dictionary,Multidimensional Array,Direction,因此,我对java非常陌生,我正在为基于文本的游戏的地图或地下城的2d阵列而奋斗。这是我当前的代码: import java.util.*; public class Map { public static void main(String[] args) { System.out.println("You have fallen into the dungeon"); String [] Roomtiles = { "You are at t

因此,我对java非常陌生,我正在为基于文本的游戏的地图或地下城的2d阵列而奋斗。这是我当前的代码:

import java.util.*;

public class Map
{ 
public static void main(String[] args)
{
    System.out.println("You have fallen into the dungeon");

    String [] Roomtiles = 
    {
          "You are at the entrance and may only go North.",
          "You are at the begining of the hallway, here you may go North, South, East, West.",
          "This is an achient room, the only way is East.",
          "This is an old storage, the only way is West.",
          "The hallway continues North or South.",
          "You reach a cornor and may go only West or South.",
          "You reach a room with a window, the exits are East and West.",
          "You reach a room with a massive door"    
    };

    String[] currentRoom = Roomtiles = 0;

    //North = 0, East = 1, South = 2, West = 3       
    int[][] Exits =
    {
        {1,-1,-1,-1},
        {4,3,0,2},
        {-1,1,-1,-1},
        {-1,-1,-1,1},
        {5,-1,1,-1},
        {-1,-1,4,6},
        {-1,5,-1,7},
        {-1,6,-1,-1},
    };
    System.out.printf(currentRoom);
  }
}
我已经画出了我想要地牢的样子,但我不知道如何首先设置用户的位置并说明他们的位置,而且我也不知道如何让用户在地图中移动,我知道的最多的是我需要让他们使用基本方向(比如键入n表示北,s表示南,ext.),但我不知道如何扩展业务来实现这一点