Compare commits

..

No commits in common. "ad70ff95d1a7f870f07e805b0e01d72bfafcb8ad" and "5d33e1ed0851bc91f1e595918474f351184a71a7" have entirely different histories.

2 changed files with 5 additions and 8 deletions

View File

@ -16,11 +16,11 @@ public class Main {
testBoard.getWidth();
System.out.println(testBoard.toString());
Piece testPiece = new Piece(PieceType.Knight);
/*Piece testPiece = new Piece();
testPiece.getX();
testPiece.getY();
testPiece.getType();
testPiece.isWhite();
testPiece.isWhite();*/
// launches graphical interface :

View File

@ -2,13 +2,10 @@ 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;
@ -18,7 +15,7 @@ public class Piece {
System.out.println("The Y value is " + y);
return y;
}
public PieceType getType() {
System.out.println("The PieceType value is " + type);
@ -26,8 +23,8 @@ public class Piece {
}
public boolean isWhite() {
System.out.println("The PieceType value is white: " + color);
return color;
return false;
}
}