Skip to content

Clarify the Game Class

Do This First...

Make sure all tests pass before getting started on this lab.

For as much time as you have in this lab, apply the Clarification Refactoring to the Game class (only). This means using the Extract Method automated refactoring on any methods that have the Long Method code smell.

Do not try to generalize methods, or spend too much time thinking about how to improve the design, your goal is to extract methods for meaning to make the overall code easier to read and understand at a glance.

Ensure all of the tests are passing when you've done each refactoring and when you're done.


You are done!