CSCI 306

JUnit Exercise

Part II Due: Wednesday February 13

Part III Due: Tuesday February 19


Purpose:


Preparation:



Lesson

Part I: Understanding JUnit

Part II: Writing your Own Methods and Tests

return ChessPanel.MoveStatus.valid;

from the validMove method of each of the pieces.  This will allow you to just move the pieces around on the Board as you'd like, without going through an entire game sequence (although you will still need to alternate players).
HINT: The saved Board configurations can also be handy for debugging.

Part III: Completing the Game

There are several aspects of the game which have not yet been coded.  Adding those features is a design exercise.

Part IV: Test Your Understanding - On Your Own

Remember that one goal for this exercise is to learn a variety of Java concepts.  To test your understanding, on your own or (preferably) with your partner, answer the questions located here.  Nothing to turn in, this is just for your benefit.


Submission:

Part II:   Zip your project and submit and Blackboard.  Submit just one copy per team and be sure to include your partner's name.  Your submission should include:

Part III: Zip your final game and submit on Blackboard. Submit just one copy per team and be sure to include your partner's name in the Blackboard comments.  Your submission should include:
Extra Credit (2 points): Find (and fix) a bug, suggest an improvement, add another feature.