supprime inbounds from board class
This commit is contained in:
parent
7fa75a6862
commit
4771b67898
|
|
@ -125,9 +125,7 @@ public class Board {
|
|||
return hasSelectedPiece && selectedX == x && selectedY == y;
|
||||
}
|
||||
|
||||
private boolean inBounds(int x, int y) {
|
||||
return x >= 0 && x < width && y >= 0 && y < height;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue