Update on Class Move

This commit is contained in:
Lymeng LY 2025-05-14 13:38:56 +02:00
parent acfd893135
commit 5607ae2e57
1 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,15 @@
package backend;
public class Move {
public Piece piece; //The piece to move
public int toX; //Target x position
public int toY; //Target y position
public Move(Piece piece, int toX, int toY) {
this.piece = piece;
this.toX = toX;
this.toY = toY;
}
}