case GO_BACK: dir = reverse(lastDir); break;should change, but only a little. It's a very easy change to make once you have the maps working properly. As a guide to see what the back action should do, press b while playing the solution version of amazed. (A small hint: you no longer need lastDir at all.)
amazed -nto see the entire maze. The solution version contains this option as well so if you just wish to see what the entire maze looks like, you can run the solution version with the -n option rather than recompiling.
void move(int&, int&)
When really it is prototyped as:
void setYX(int&, int&)
The bug has been fixed.
cp ~cs367-3/Assignments/Two/Files/display-maze.o .