Пример #1
0
 public Piece getPiece(String pos) {
   Position p = new Position(pos);
   return chessBoard.get(p.getPostionRow()).getPiece(p.getPostionCol());
 }
Пример #2
0
 public void addPiece(String pos, Piece piece) {
   Position p = new Position(pos);
   positionList.add(p);
   chessBoard.get(p.getPostionRow()).addPiece(p.getPostionCol(), piece);
 }