/** * 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(); }
/** * Constructs a deterministic world based on the provided map. * @param map the first index is the x index, the second the y; 1 entries indicate a wall */ public GridWorldDomain(int [][] map){ this.setMap(map); this.setDeterministicTransitionDynamics(); }