@@ -0,0 +1,1441 @@
+package ru.sbulygin.chees;%0A%0Aimport ru.sbulygin.exeptions.ImpossibleMoveException;%0A%0A/**%0A * Class Pawn.%0A *%0A * @author ru.sbulygin.start.%0A * @since 15.03.2017.%0A * @version 1.0.%0A */%0Apublic class Pawn extends Figure %7B%0A%0A    /**%0A     * An array field of the movement of an pawn.%0A     */%0A    private Cell%5B%5D direction;%0A%0A    /**%0A     * The first stroke of the figure.%0A     */%0A    private int firstMove;%0A%0A    /**%0A     * The constructor of the Pawn class generates the class object.%0A     * @param position position of the figure on the Board.%0A     */%0A    public Pawn(Cell position) %7B%0A        super(position);%0A    %7D%0A%0A    /**%0A     * Way overridden method of the abstract class Figure.%0A     * @param distance the specified cell on the Board.%0A     * @return array of the path of movement of the pawn.%0A     * @throws ImpossibleMoveException error of the impossibility of motion pawn.%0A     */%0A    @Override%0A    public Cell%5B%5D way(Cell distance) throws ImpossibleMoveException %7B%0A%0A        int posX = getPosition().getPivotX();%0A        int posY = getPosition().getPivotY();%0A        int distX = distance.getPivotX();%0A        int distY = distance.getPivotY();%0A%0A        if (firstMove == 2 %7C%7C firstMove == 1) %7B%0A            if (posX == distX && posY != distY) %7B%0A                direction = motionDirection(distance);%0A            %7D else %7B%0A                throw new ImpossibleMoveException(%22Pawn can't walk.%22);%0A            %7D%0A%0A        %7D%0A        return direction;%0A    %7D%0A%7D%0A

add Pawn class