@@ -0,0 +1,1423 @@
+package by.vorokhobko.Chess.start;%0A%0Aimport by.vorokhobko.Chess.exceptions.ImposibleMoveException;%0Aimport by.vorokhobko.Chess.models.Cell;%0Aimport by.vorokhobko.Chess.models.Figure;%0Aimport by.vorokhobko.Chess.models.Type;%0A%0A/**%0A * Bishop.%0A *%0A * Class Bishop makes the class Figure wider in the implementation part 002, lesson test.%0A * @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A * @since 13.05.2017.%0A * @version 1.%0A */%0Apublic class Bishop extends Figure %7B%0A    /**%0A     * The class field.%0A     */%0A    private Cell%5B%5D distance;%0A    /**%0A     * The class field.%0A     */%0A    private Type type;%0A    /**%0A     * %D0%A1reate name in the method Bishop.%0A     * @param position - position.%0A     */%0A    public Bishop(Cell position) %7B%0A        super(position);%0A    %7D%0A    /**%0A     * The method way, inherited from class Figure.%0A     * @param dist - dist.%0A     * @return tag.%0A     * @throws ImposibleMoveException tag.%0A     */%0A    public Cell%5B%5D way(Cell dist) throws ImposibleMoveException %7B%0A        int distX = Math.abs(dist.getX() - getPosition().getX());%0A        int distY = Math.abs(dist.getY() - getPosition().getY());%0A        if (distX %3E 0 %7C%7C distY %3E 0) %7B%0A%0A        %7D else %7B%0A            throw new ImposibleMoveException(%22Bishop do not move that.%22);%0A        %7D%0A        return distance;%0A    %7D%0A    /**%0A     * The method a listing of all figures.%0A     * @return tag.%0A     */%0A    public Type getType() %7B%0A        return Type.BISHOP;%0A    %7D%0A%7D

add class Bishop