diff --git a/OOP_2B1_Project/src/backend/lastMove.java b/OOP_2B1_Project/src/backend/lastMove.java new file mode 100644 index 0000000..d126dc4 --- /dev/null +++ b/OOP_2B1_Project/src/backend/lastMove.java @@ -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; + } +} +