fix prb 2

This commit is contained in:
martinbst 2025-05-01 13:51:08 +02:00
parent 5afdd7a5b3
commit 8afef9e183
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
package backend;
public class lastMove {
private int fromX, fromY, toX, toY;
public lastMove(int fromX, int fromY, int toX, int toY) {
this.fromX = fromX;
this.fromY = fromY;
this.toX = toX;
this.toY = toY;
}
public int getFromX() {
return fromX;
}
public int getFromY() {
return fromY;
}
public int getToX() {
return toX;
}
public int getToY() {
return toY;
}
}