restart enabled
This commit is contained in:
parent
29dacdaf3c
commit
c1210f2141
|
|
@ -68,7 +68,7 @@ public class Move {
|
||||||
moves.add(x + "," + y);
|
moves.add(x + "," + y);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isValidPosition(Board board, int x, int y) {
|
static boolean isValidPosition(Board board, int x, int y) {
|
||||||
return x >= 0 && x < board.getWidth() && y >= 0 && y < board.getHeight();
|
return x >= 0 && x < board.getWidth() && y >= 0 && y < board.getHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue