A refactoring kata featuring Hunt The Wumpus
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
doc
src
.gitignore
README.md
pom.xml

README.md

Refactor the Wumpus

Goal

Transform the provided implementation of Hunt the Wumpus into a healthy, maintainable code base.

Overview

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.

Maven Notes

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 guru-checks-output profile.

mvn -P guru-checks-output clean test

To run the program from the command line:

mvn compile exec:java

Links

Original Source Code