Debuged the function getall legal move as the X and Y was swapped.
This commit is contained in:
parent
c363bf7c1b
commit
34b0a251c2
Binary file not shown.
Binary file not shown.
|
|
@ -368,7 +368,7 @@ public class Board implements Cloneable {
|
|||
|
||||
for (Piece piece : pieces) {
|
||||
if (piece.isWhite() == isWhite) {
|
||||
moves.addAll(piece.getLegalMoves(this, piece.getX(), piece.getY()));
|
||||
moves.addAll(piece.getLegalMoves(this, piece.getY(), piece.getX()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue