@@ -0,0 +1,954 @@
+public class Room %7B%0A    private final int MAXEXITS = 4;%0A    private final int NORTH = 0;%0A    private final int SOUTH = 1;%0A    private final int EAST = 2;%0A    private final int WEST = 3;%0A    private final int PIT = 10;%0A    private final int WALL = 20;%0A    private final int NORMAL = 30;%0A    private final int EMPTY = 0x0;%0A    private final int BORK = 0x100;%0A    private final int WEAPON = 0x200;%0A    private final int KEY = 0x400;%0A    private final int TREASURE = 0x800;%0A%0A    // We can visit 4 other rooms from here.%0A    private Room%5B%5D exits = new Room%5B4%5D; %0A    private String description;%0A    private int contents;%0A    private int type;%0A%0A    public void connect(int directon, Room destination) %7B%0A%09exits%5Bdirection%5D = destination;%0A    %7D%0A%0A%0A    public String descr() %7B%0A%09return description;%0A    %7D%0A%0A    public Room() %7B%0A%09int i;%0A%0A%09for( i = 0; i %3C MAXEXITS; ++i) %7B%0A%09    exits%5Bi%5D = null;%0A%09%7D%0A%09description = new String(%22%22);%0A%09contents = EMPTY;%0A%09type = NORMAL;%0A    %7D%0A%7D

Add room class file