Merge branch 'master' of https://gitarero.ecam.fr/noa.four/OOP_1B2_Project.git
This commit is contained in:
commit
9a9b098bf0
|
|
@ -32,7 +32,11 @@ public class Move {
|
|||
public Piece getCapturedPiece() {
|
||||
return capturedPiece;
|
||||
}
|
||||
public Piece isCapture() {
|
||||
return capturedPiece;
|
||||
public boolean isCapture() {
|
||||
return capturedPiece != null;
|
||||
}
|
||||
public String toString() {
|
||||
return piece + ":("+ fromX + "," + fromY + ")-("+ toX + "," + toY + ")" + ( capturedPiece != null? "capturing "+ capturedPiece: "");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue