delete the print

This commit is contained in:
gwitt 2025-05-16 10:01:01 +02:00
parent ec1fc2a693
commit 63d217c010
1 changed files with 0 additions and 2 deletions

View File

@ -206,11 +206,9 @@ public class Board {
if (pieces.get(whatPiece(x,y)).getX()==7 || pieces.get(whatPiece(this.x,this.y)).getX()==7) {//that means we are dealing with the right rooks for castling if (pieces.get(whatPiece(x,y)).getX()==7 || pieces.get(whatPiece(this.x,this.y)).getX()==7) {//that means we are dealing with the right rooks for castling
if (pieces.get(whatPiece(this.x,this.y)).isWhite()==true){ if (pieces.get(whatPiece(this.x,this.y)).isWhite()==true){
kingWMoved = true; kingWMoved = true;
System.out.print("W");
} }
else { else {
kingBMoved = true; kingBMoved = true;
System.out.print("B");
} }
pieces.get(whatPiece(7,y)).setX(5); pieces.get(whatPiece(7,y)).setX(5);
pieces.get(whatPiece(4,y)).setX(6); pieces.get(whatPiece(4,y)).setX(6);