/** * Constructs an empty map with deterministic transitions * @param width width of the map * @param height height of the map */ public GridWorldDomain(int width, int height){ this.width = width; this.height = height; this.setDeterministicTransitionDynamics(); this.makeEmptyMap(); }
public IRLExample(){ this.gwd = new GridWorldDomain(5 ,5); this.gwd.setNumberOfLocationTypes(5); gwd.makeEmptyMap(); this.domain = gwd.generateDomain(); State bs = this.basicState(); this.sg = new LeftSideGen(5, bs); this.v = GridWorldVisualizer.getVisualizer(this.gwd.getMap()); }
/** * Will set the map of the world to the classic Four Rooms map used the original options work (Sutton, R.S. and Precup, D. and Singh, S., 1999). */ public void setMapToFourRooms(){ this.width = 11; this.height = 11; this.makeEmptyMap(); horizontalWall(0, 0, 5); horizontalWall(2, 4, 5); horizontalWall(6, 7, 4); horizontalWall(9, 10, 4); verticalWall(0, 0, 5); verticalWall(2, 7, 5); verticalWall(9, 10, 5); }