Commented all the lines that are printing smthg
This commit is contained in:
parent
784b852cd9
commit
58f64e97db
|
|
@ -18,22 +18,15 @@ public class Board {
|
||||||
this.lineNum = lineNum;
|
this.lineNum = lineNum;
|
||||||
this.pieces = new ArrayList<>();
|
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() {
|
public int getWidth() {
|
||||||
System.out.println("The width is " + lineNum);
|
//System.out.println("The width is " + lineNum);
|
||||||
return lineNum;
|
return lineNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getHeight() {
|
public int getHeight() {
|
||||||
System.out.println("The height is " + colNum);
|
//System.out.println("The height is " + colNum);
|
||||||
return colNum;
|
return colNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,23 +22,23 @@ public class Piece {
|
||||||
|
|
||||||
|
|
||||||
public int getX() {
|
public int getX() {
|
||||||
System.out.println("The X value is " + x);
|
//System.out.println("The X value is " + x);
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getY() {
|
public int getY() {
|
||||||
System.out.println("The Y value is " + y);
|
//System.out.println("The Y value is " + y);
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public PieceType getType() {
|
public PieceType getType() {
|
||||||
System.out.println("The PieceType value is " + type);
|
//System.out.println("The PieceType value is " + type);
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isWhite() {
|
public boolean isWhite() {
|
||||||
System.out.println("The PieceType value is white: " + color);
|
//System.out.println("The PieceType value is white: " + color);
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue