Exemplo n.º 1
0
 public Piece(Square location, ChessColour colour) {
   this.location = location;
   this.colour = colour;
   location.setOccupiedBy(this);
 }
Exemplo n.º 2
0
 public void move(Square newLocation) {
   location.setOccupiedBy(null);
   newLocation.setOccupiedBy(this);
   location = newLocation;
 }