Пример #1
0
 /** move */
 public LinkedList<Integer> move(ChessBoard b) {
   LinkedList<Integer> movePosition = new LinkedList<Integer>();
   super.setLinkList(curx - 2, cury - 1, movePosition, b);
   super.setLinkList(curx - 2, cury + 1, movePosition, b);
   super.setLinkList(curx - 1, cury + 2, movePosition, b);
   super.setLinkList(curx + 1, cury + 2, movePosition, b);
   super.setLinkList(curx + 2, cury + 1, movePosition, b);
   super.setLinkList(curx + 2, cury - 1, movePosition, b);
   super.setLinkList(curx + 1, cury - 2, movePosition, b);
   super.setLinkList(curx - 1, cury - 2, movePosition, b);
   return movePosition;
 }