umar_ahmad

rook.java

Feb 28th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. package chess;
  2.  
  3. public class Rook extends Piece{
  4. public Rook(PieceColour colour){
  5. this.colour = colour;
  6. if (colour == PieceColour.WHITE){
  7. setSymbol("wr");
  8. }
  9. else {
  10. setSymbol("br");
  11. }
  12. }
  13.  
  14. @Override
  15. public boolean isLegitMove(int iIn, int jIn, int iOut, int jOut){
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. return false;
  26. }
  27.  
  28.  
  29. }
Add Comment
Please, Sign In to add comment