refactored pawn movement + implemented knight movement
This commit is contained in:
@@ -26,6 +26,10 @@ public class Board {
|
||||
}
|
||||
|
||||
public boolean isOpen(Position pos) {
|
||||
return this.board[pos.x][pos.y] == null;
|
||||
return this.getPiece(pos) == null;
|
||||
}
|
||||
|
||||
public Piece getPiece(Position pos) {
|
||||
return this.board[pos.x][pos.y];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user