Skip to content

DanilSuits/refactor-the-wumpus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A refactoring kata featuring Hunt The Wumpus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published