(Board board, Piece piece)
| 15 | public static final int MAX_DISTANCE = 1; |
| 16 | |
| 17 | public static LegalMoves getMoveList(Board board, Piece piece) { |
| 18 | final LegalMoves legalMoves = Utils.getMoves(board, MAX_DISTANCE, movement, piece); |
| 19 | filterIllegalMoves(board, legalMoves.moves, piece); |
| 20 | return legalMoves; |
| 21 | } |
| 22 | |
| 23 | private static void filterIllegalMoves(Board board, Set<Move> moves, Piece king) { |
| 24 | final Set<Cell> illegalSquares = getIllegalSquares(board, Color.opponent(king.color), |
no test coverage detected