Uses of Class
Piece

Uses of Piece in <Unnamed>
 

Methods in <Unnamed> that return Piece
 Piece Board.getPiece(int x, int y, int color)
          Returns piece with given coordinates and color.
 Piece[] PlayerAI.highestValuePieceAbleToCapture(int side)
          Returns an array that contains two cells which first cell contains own piece that can be capture highest value enemy piece and second cell contains highest value enemy piece.
 Piece Board.notationToPiece(java.lang.String notation)
          Get piece based on notation.
 

Methods in <Unnamed> that return types with arguments of type Piece
 java.util.ArrayList<Piece> Board.getPieces()
          Get all pieces as an arraylist.
 java.util.ArrayList<Piece> Board.getPiecesFromOneSide(int color)
          Get pieces from only one black or white as an arraylist.
 java.util.ArrayList<java.util.ArrayList<Piece>> PlayerAI.getPiecesPossibleToCapture(int side)
          Get all enemy pieces that can be captured.
 java.util.ArrayList<java.util.ArrayList<Piece>> PlayerAI.piecesAbleToCaptureInValueDescOrder(int side)
          Returns an array of enemy pieces that can be captured in value descending order.
 

Methods in <Unnamed> with parameters of type Piece
 void Board.addPiece(Piece p)
          Add new piece on the board
 boolean Player.isOwnPiece(Piece piece)
          Find out if piece is owned by player.
 java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> Move.possiblePieceMoves(Piece piece)
          Returns an arraylist containing two arraylists for possible coordinates the selected piece can move.
 void PlayerAI.sortPieceArray(Piece[] list, int length)
          Sorts an array of Piece objects in ascending order by value.
 

Method parameters in <Unnamed> with type arguments of type Piece
 void Board.setPieces(java.util.ArrayList<Piece> pieces)
          Set arraylist wich contains all pieces.