Skip to content

Commit

Permalink
Corrected some documentation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
falseme committed Oct 29, 2021
1 parent 3d6a85d commit 71f8778
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/Piece.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ protected void bishopMovements(LinkedList<int[]> moves, int[] pos) {
}

/**
* Calculates the movements a king can do using pathfinding.
* Calculates the movements a king can do using pathfinding.<br>
* Also checks castling (Looks if there are empty squares in the way and
* even if they are not in the path of an enemy piece).
* @param moves List which will be loaded with every move the king can do.
* @param pos The piece's coords in the table given by its square.
*/
Expand Down Expand Up @@ -531,7 +533,7 @@ protected boolean addMove(LinkedList<int[]> moves, int x, int y) {
}

/**
* Given the coords x and y, checks if the square is threatened by any piece.<br>
* Given the coords x and y, checks if the square is threatened by any enemy piece.<br>
* In other words, checks if the LinkedList given by the method {@link #calculateMoves(int[])}
* contains the coords especified in the parameters.
*
Expand Down

0 comments on commit 71f8778

Please sign in to comment.