public interface Piece
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canMoveTo(int row,
         int column)
Can this piece move to the indicated position? 
 | 
boolean | 
getColor()
What color is this piece (true=black, false=red) 
 | 
void | 
setPosition(int row,
           int column)
Set the current position of this piece. 
 | 
String | 
toString()
Make a string representation of this piece 
 | 
boolean canMoveTo(int row,
                int column)
row - The intended vertical position.column - The intended horizontal position.boolean getColor()
void setPosition(int row,
               int column)
row - The intended vertical position.column - The intended horizontal position.String toString()