fix bomb graphic on first click bomb being moved in setBombIfFirstTileIsBomb

This commit is contained in:
2024-05-26 13:32:48 +01:00
parent 7323fa8fb8
commit ffaa310dbe
2 changed files with 9 additions and 3 deletions
@@ -62,6 +62,11 @@ public class GridWrapper {
return count;
}
public void updateGrid(int oldColumn, int oldRow, int newColumn, int newRow) {
grid[oldColumn][oldRow] = false;
grid[newColumn][newRow] = true;
}
private boolean isBombAt(int column, int row) {
return isValid(column, row) && grid[column][row];
}