Skip to content
Snippets Groups Projects
Commit 9088838b authored by Alexis Nasr's avatar Alexis Nasr
Browse files

modification du nom de la méthode isLegal

parent 9e7605bd
Branches
No related tags found
No related merge requests found
......@@ -55,6 +55,7 @@ public class Board{
}
public List<Piece> getPieces() {
return null;
}
......@@ -84,7 +85,7 @@ public class Board{
return false;
}
public boolean sameLineNothingBetween(Coordinates origin, Coordinates destination){
public boolean sameRowNothingBetween(Coordinates origin, Coordinates destination){
return false;
}
......
......@@ -5,11 +5,14 @@ public class King extends Piece {
owner.setKing(this);
}
public boolean isMoveLegal(Board board, Coordinates destination){
public boolean isMoveAuthorized(Board board, Coordinates destination){
int dx = destination.getX();
int dy = destination.getY();
int ox = this.getX();
int oy = this.getY();
return true;
}
......
......@@ -48,14 +48,10 @@ public abstract class Piece{
return true;
}
public abstract boolean isMoveLegal(Board board, Coordinates destination);
public abstract boolean isMoveAuthorized(Board board, Coordinates destination);
public abstract Type getType();
public abstract int getValue();
public boolean isMovePlayable(Board board, Coordinates destination){
return true;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment