package schack; import java.awt.Point; import java.io.IOException; import java.util.ArrayList; public abstract class LongWalkers extends PieceKnownIfMoved { public LongWalkers(boolean isWhite, Point startingPosition) throws IOException { super(isWhite, startingPosition); } /** * Generell metod för att generera möjliga drag för LongWalkers * * @param directions vilka håll. Exempel:
* {@code new int[][]{{1, 0}, {-1, 0}, {0, 1}, {0, -1}}}för att gå * som ett torn * * @param pieces * @param allowedToRecurse * @return */ ArrayList