Skip to content

Commit

Permalink
Update StarBattleBoard.java
Browse files Browse the repository at this point in the history
Another checkstyle fix
  • Loading branch information
Chase-Grajeda committed Apr 16, 2024
1 parent 4a502d5 commit e7ea944
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ public int columnStars(int columnIndex) {
int stars = 0;
if (columnIndex < size) {
for (StarBattleCell c: this.getCol(columnIndex)) {
if (c.getType() == StarBattleCellType.STAR)
if (c.getType() == StarBattleCellType.STAR) {
++stars;
}
}
}
return stars;
Expand All @@ -84,8 +85,9 @@ public int rowStars(int rowIndex) {
int stars = 0;
if (rowIndex < size) {
for (StarBattleCell c: this.getRow(rowIndex)) {
if (c.getType() == StarBattleCellType.STAR)
if (c.getType() == StarBattleCellType.STAR) {
++stars;
}
}
}
return stars;
Expand All @@ -97,8 +99,9 @@ public StarBattleBoard copy() {
for (int y = 0; y < this.dimension.height; y++) {
copy.setCell(x, y, getCell(x, y).copy());
}
if (x < this.regions.size())
if (x < this.regions.size()) {
copy.regions.add(this.getRegion(x).copy());
}
}
for (PuzzleElement e : modifiedData) {
copy.getPuzzleElement(e).setModifiable(false);
Expand Down

0 comments on commit e7ea944

Please sign in to comment.