16 lines
393 B
Java
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;
|
|
}
|
|
}
|