Section E(h) - Exhausting the maze and retrieving rooms
[Terra Incognita is said to be "open" if there are still maze rooms left to discover, and "closed" if they have all been played, so that the maze is exhausted.]
Terra Incognita can be open or closed. Terra Incognita is open.
[When the maze has been exhausted, it often happens that several of the rooms played have never been visited. If the player tries going east into Terra Incognita, say, a new room is placed at the appropriate grid position. If that new room has a connection back west, all well and good. If it doesn't, the player is stymied, and the original map connection changed to Solid Rock. But the new room is not removed again: instead, it waits in the labyrinth to be discovered from another side. (Such rooms were played as face-down cards in the original board game.) But what if the player never does discover another way in? They then remain unvisited forever.
Except that they don't, because we follow a procedure called retrieval to take such rooms back into the pack for further playing if the pack ever runs out. Note that the Deep Pool Environs area is fixed: those few rooms stay put whether or not they are ever visited.]
Definition: A labyrinth room is retrievable if it is unvisited and it is not in the Deep Pool Environs.
To re-plumb (place - a room) to (way - a direction):
let the connection be the room way from the place;
if the connection is a retrievable labyrinth room, change the way exit of the place to Terra Incognita.
To retrieve inaccessible labyrinth rooms:
repeat with maze area running through retrievable labyrinth rooms:
re-plumb the maze area to north;
re-plumb the maze area to east;
re-plumb the maze area to south;
re-plumb the maze area to west;
re-plumb the maze area to up;
re-plumb the maze area to down;
now the grid position of the maze area is <0,0,0>.