Compare commits
No commits in common. "ad70ff95d1a7f870f07e805b0e01d72bfafcb8ad" and "5d33e1ed0851bc91f1e595918474f351184a71a7" have entirely different histories.
ad70ff95d1
...
5d33e1ed08
|
|
@ -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 :
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue