Example #1
0
 //checks if same colour
 public bool isSameColour(Piece P)
 {
     if (P.getColour() == this.colour)
         return true;
     else
         return false;
 }
Example #2
0
 public void setPiece(Piece p)
 {
     piece = p;
 }
Example #3
0
 public void removePiece()
 {
     piece = null;
 }