Refactor the Wumpus
Transform the provided implementation of Hunt the Wumpus into a healthy, maintainable code base.
Legacy code is hard.
In this particular example, I've taken the original BASIC implementation of Hunt the Wumpus, and transcribed it as accurately as I was able to Java.
There's nothing deliberately tricky about the translation -- the code is not particularly well structured, and the naming conventions do not prioritize communicating intent. So it goes.
On the other hand, the implementation is small; it is single threaded, with no external dependencies.
The regression tests were segregated into a special profile, which in
this stack is
disabled by default. They can be run during the
test cycle by enabling the
mvn -P guru-checks-output clean test
To run the program from the command line:
mvn compile exec:java