Beispiel #1
0
    private bool checkReachDestination()
    {
        // for now simple algorithm, supports only for single path
        int firstX, firstY;

        getNeighborCoordinates(inputX, inputY, inputOrientation, out firstX, out firstY);
        return(isValidPath(firstX, firstY, inputOrientation.opposite()));
    }