PWOD8: World of Zuul

In this PWOD we will see how to refactor an existing Java project so that code changes are easier to make. We began this PWOD in class.

Rx: <30 min Av: 30-60 min Sd: 60-90 min DNF: 90+ min

Instructions

  1. If you haven’t been following along in class, download the Zuul Starter Project and import it into your workspace. If you were following along in class, you can start from where we added the cellar: Zuul-04_06.zip.
  2. Implement the suggested changes in Tasks.docx. Specifically, you will be moving from the original code design:

to:

For the final task (adding support for additional command languages besides English), it is recommended you create a CommandWords class.

Demonstration

Once you’ve finished doing the WOD a single time, watch me do it:

Note: video creates a look command for an exit, rather than the current room.

My Final Project

Zuul_final.zip

Standard Practice HW Advice

You’ll learn significantly less from watching me solve the practice HW if you haven’t attempted the HW yourself first.

While it’s an achievement to finish the HW no matter how long it takes, you might experience “diminishing returns” if you work longer than the DNF time. Thus, it might be strategic to stop working at the DNF time and watch my solution.

After watching my solution, I recommend that you repeat the HW if you have not achieved at least Av performance. If so, be sure to:

Feel free to keep trying until you make Rx if that’s of interest to you.