removed some commented methods

This commit is contained in:
lrave 2025-05-16 09:48:53 +02:00
parent 4c6d6e3af3
commit 3eb7d3ea3f
1 changed files with 1 additions and 3 deletions

View File

@ -191,14 +191,12 @@ public class Board {
if(pieceToMove.getType() == PieceType.King && Math.abs(x - selectedX)==2) { if(pieceToMove.getType() == PieceType.King && Math.abs(x - selectedX)==2) {
y = selectedY; y = selectedY;
if (x == 6) { if (x == 6) {
System.out.println("pipi au caca");
board[5][y] = board[7][y]; board[5][y] = board[7][y];
board[7][y] = null; board[7][y] = null;
board[5][y].setMoved(true); board[5][y].setMoved(true);
board[5][y].setX(5); board[5][y].setX(5);
board[5][y].setY(y); board[5][y].setY(y);
} else if (x == 2) { } else if (x == 2) {
System.out.println("pipi");
//System.out.println(board [3][y]); //System.out.println(board [3][y]);
//System.out.println(board [0][y]); //System.out.println(board [0][y]);
board [3][y] = board[0][y]; board [3][y] = board[0][y];
@ -221,7 +219,7 @@ public class Board {
selectedX = -1; selectedX = -1;
selectedY = -1; selectedY = -1;
highlightedPositions.clear(); highlightedPositions.clear();
//clearConsole(); clearConsole();
System.out.println(toString()); System.out.println(toString());
} }
} }