This repository has been archived on 2023-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
Chess/src/Move.java
2023-03-14 12:40:49 -07:00

16 lines
393 B
Java

public class Move {
public BoardCoordinate from;
public BoardCoordinate to;
public Piece captured;
public Move(BoardCoordinate from, BoardCoordinate to) {
this.from = from;
this.to = to;
}
public Move(BoardCoordinate from, BoardCoordinate to, Piece captured) {
this.from = from;
this.to = to;
this.captured = captured;
}
}