src/main/java/com/webcheckers/model/Game.java
/**
     * checks if there is any available double jumps from a space
     * @param i, row of space
     * @param j, column of space
     * @return false if there is a double jump available, true otherwise.
     */
checks if there is any available double jumps from a space
@param i, row of space
@param j, column of space
@return false if there is a double jump available, true otherwise.
checks if there is any available double jumps from a space @param i row of space @param j column of space @return false if there is a double jump available true otherwise .
private boolean checkBoardDoubleJump(int i, int j){
        if (boardView.getSpace(i, j).getPiece().getType() == Piece.PieceType.KING &&
                this.activeColor == boardView.getSpace(i, j).getPiece().getColor()){
            boolean temp = check_DownLeft(i,j) && check_DownRight(i,j) && check_UpLeft(i,j)
                    && check_UpRight(i,j);
            if (!temp){
                return false;
            }
        } else if (boardView.getSpace(i,j).getPiece().getColor() == this.activeColor &&
                this.activeColor == PieceColor.WHITE){
            boolean temp = check_UpLeft(i,j) && check_UpRight(i,j);
            if (!temp){
                return false;
            }
        } else if (boardView.getSpace(i,j).getPiece().getColor() == this.activeColor &&
                this.activeColor == PieceColor.RED){
            boolean temp = check_DownLeft(i,j) && check_DownRight(i,j);
            if (!temp){
                return false;
            }
        }
        return true;
    }
private boolean checkBoardDoubleJump ( int i , int j ) { if ( boardView . getSpace ( i , j ) . getPiece ( ) . getType ( ) == Piece . PieceType . KING && this . activeColor == boardView . getSpace ( i , j ) . getPiece ( ) . getColor ( ) ) { boolean temp = check_DownLeft ( i , j ) && check_DownRight ( i , j ) && check_UpLeft ( i , j ) && check_UpRight ( i , j ) ; if ( ! temp ) { return false ; } } else if ( boardView . getSpace ( i , j ) . getPiece ( ) . getColor ( ) == this . activeColor && this . activeColor == PieceColor . WHITE ) { boolean temp = check_UpLeft ( i , j ) && check_UpRight ( i , j ) ; if ( ! temp ) { return false ; } } else if ( boardView . getSpace ( i , j ) . getPiece ( ) . getColor ( ) == this . activeColor && this . activeColor == PieceColor . RED ) { boolean temp = check_DownLeft ( i , j ) && check_DownRight ( i , j ) ; if ( ! temp ) { return false ; } } return true ; }
checks if there is any available double jumps from a space
 @param i, row of space
 @param j, column of space
 @return false if there is a double jump available, true otherwise.
checks if there is any available double jumps from a space @param i row of space @param j column of space @return false if there is a double jump available true otherwise .