You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for this excellent library.I am experimenting with it and trying to get only edge pieces on canvas.I am modifying the puzzle constructor like below code.
public Puzzle(Context c, Bitmap[] images, String location, int width, int height, Difficulty d) {
for (int i = 0; i < images.length; i++) {
if(pg.isEdge(i, width, height)){
edgePieces.add(new Piece(c, images[i], d.getOffset()));
}
else{
pieces.add(new Piece(c, images[i], d.getOffset()));
}
}
this.width = width;
findNeighbors(width);
}
But every time app throws error on line:- if(pg.isEdge(i, width, height)){ . I think isEdge method is not working.Please help me to get rid of this error.
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hello, thanks for this excellent library.I am experimenting with it and trying to get only edge pieces on canvas.I am modifying the puzzle constructor like below code.
But every time app throws error on line:- if(pg.isEdge(i, width, height)){ . I think isEdge method is not working.Please help me to get rid of this error.
Thanks in advance
The text was updated successfully, but these errors were encountered: