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()); System.out.println(testBoard.toString());
// launches graphical interface : // launches graphical interface :
MyInterface mjf = new MyInterface(); MyInterface mjf = new MyInterface();
mjf.setVisible(true); mjf.setVisible(true);

View File

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