getX, getY, getType

This commit is contained in:
eliot 2025-04-17 10:53:55 +02:00
parent 28357d2303
commit f48ece0cc5
2 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,7 @@ public class Main {
System.out.println(testBoard.toString());
// launches graphical interface :
MyInterface mjf = new MyInterface();
mjf.setVisible(true);

View File

@ -2,9 +2,9 @@ package backend;
public class Piece {
public int x;
public int y;
public PieceType type;
private int x;
private int y;
private PieceType type;
public int getX() {
return x;
@ -19,6 +19,7 @@ public class Piece {
}
public boolean isWhite() {
return false;
}