For this assignment, imagine that you are working for a casual game company developing applications for cell phones. Another programmer has written an implementation of the rules of chess, i.e., the code in edu.wpi.imgd4000. Your job is to add a 3D graphical touch-screen interface for "hot seat" play, i.e., two players pass the phone back and forth between them.
Finally, note that in the next assignment, you will be adding play against an AI. Make your design as modular as possible to facilitate this future extension.
Design Note: The chess logic code was written "defensively", i.e. with tight access restrictions, to prevent it from being broken too easily. (For a nice exposition of defensive programming in Java see Effective Java.) If you really want to modify this code to make private methods be protected, etc., or to write your new code inside the edu.wpi.imgd4000 package, you can do so (since you will include the edu.wpi.imgd4000 package in the turnin for every homework, for just this reason). However, consider the classic object-oriented design tradeoff of "composition versus inheritance". For example, rather than trying to extend the immutable Piece class (immutable classes are good design elements), you can create a new class which has a field containing the appropriate Piece instance and the corresponding graphical node (the pure composition approach). Or you can mix inheritance and composition by making the new class extend Node. Keeping the chess logic separate from the graphics will help when you write an AI which explores possible moves.