()
| 51 | } |
| 52 | |
| 53 | @Override |
| 54 | public String toString() { |
| 55 | return "{" + printMove(piece, target) + |
| 56 | ", captureMove=" + captureMove + |
| 57 | ", captureCell=" + captureCell + |
| 58 | ", promoteTo=" + promoteTo + |
| 59 | '}'; |
| 60 | } |
| 61 | |
| 62 | private String printMove(Piece piece, Cell cell) { |
| 63 | return piece.getShortForm() + "," + piece.position.notation() + cell.notation(); |