Commented all the lines that are printing smthg

This commit is contained in:
eliot 2025-05-07 14:46:31 +02:00
parent 784b852cd9
commit 58f64e97db
2 changed files with 6 additions and 13 deletions

View File

@ -18,22 +18,15 @@ public class Board {
this.lineNum = lineNum;
this.pieces = new ArrayList<>();
//board = new String[lineNum][colNum];
// for (int i = 0; i < lineNum; i++) {
// for (int j = 0; j < colNum; j++) {
// board[i][j] = null;
// }
// }
}
public int getWidth() {
System.out.println("The width is " + lineNum);
//System.out.println("The width is " + lineNum);
return lineNum;
}
public int getHeight() {
System.out.println("The height is " + colNum);
//System.out.println("The height is " + colNum);
return colNum;
}

View File

@ -22,23 +22,23 @@ public class Piece {
public int getX() {
System.out.println("The X value is " + x);
//System.out.println("The X value is " + x);
return x;
}
public int getY() {
System.out.println("The Y value is " + y);
//System.out.println("The Y value is " + y);
return y;
}
public PieceType getType() {
System.out.println("The PieceType value is " + type);
//System.out.println("The PieceType value is " + type);
return type;
}
public boolean isWhite() {
System.out.println("The PieceType value is white: " + color);
//System.out.println("The PieceType value is white: " + color);
return color;
}