Piece isWhite
This commit is contained in:
parent
5d33e1ed08
commit
fe64a4abe3
|
|
@ -16,11 +16,11 @@ public class Main {
|
|||
testBoard.getWidth();
|
||||
System.out.println(testBoard.toString());
|
||||
|
||||
/*Piece testPiece = new Piece();
|
||||
Piece testPiece = new Piece();
|
||||
testPiece.getX();
|
||||
testPiece.getY();
|
||||
testPiece.getType();
|
||||
testPiece.isWhite();*/
|
||||
testPiece.isWhite();
|
||||
|
||||
|
||||
// launches graphical interface :
|
||||
|
|
|
|||
|
|
@ -2,10 +2,13 @@ package backend;
|
|||
|
||||
public class Piece {
|
||||
|
||||
private boolean color;
|
||||
private int x;
|
||||
private int y;
|
||||
private PieceType type;
|
||||
|
||||
|
||||
|
||||
public int getX() {
|
||||
System.out.println("The X value is " + x);
|
||||
return x;
|
||||
|
|
@ -23,8 +26,8 @@ public class Piece {
|
|||
}
|
||||
|
||||
public boolean isWhite() {
|
||||
|
||||
return false;
|
||||
System.out.println("The PieceType value is white: " + color);
|
||||
return color;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue