(Board board)
| 72 | } |
| 73 | |
| 74 | public LegalMoves getLegalMoves(Board board) { |
| 75 | switch (pieceType) { |
| 76 | case BISHOP: |
| 77 | return Bishop.getMoveList(board, this); |
| 78 | case KNIGHT: |
| 79 | return Knight.getMoveList(board, this); |
| 80 | case ROOK: |
| 81 | return Rook.getMoveList(board, this); |
| 82 | case KING: |
| 83 | return King.getMoveList(board, this); |
| 84 | case QUEEN: |
| 85 | return Queen.getMoveList(board, this); |
| 86 | case PAWN: |
| 87 | return Pawn.getMoveList(board, this); |
| 88 | default: |
| 89 | throw new IllegalStateException(); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | public String getShortForm() { |
| 94 | switch (pieceType) { |
nothing calls this directly
no test coverage detected