Skip to content

Commit

Permalink
Revert "Merge branch 'star-battle'"
Browse files Browse the repository at this point in the history
This reverts commit a89e85b, reversing
changes made to 7b45547.
  • Loading branch information
zacharybonagura committed Aug 19, 2024
1 parent 76aa2e7 commit e51bcd3
Show file tree
Hide file tree
Showing 86 changed files with 169 additions and 5,161 deletions.

This file was deleted.

53 changes: 0 additions & 53 deletions puzzles files/starbattle/5x5 Star Battle 1 star Normal/050101

This file was deleted.

Binary file not shown.
53 changes: 0 additions & 53 deletions puzzles files/starbattle/5x5 Star Battle 1 star Normal/050102

This file was deleted.

Binary file not shown.
11 changes: 0 additions & 11 deletions src/main/java/edu/rpi/legup/puzzle/starbattle/StarBattleBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,25 +97,14 @@ public int rowStars(int rowIndex) {

public StarBattleBoard copy() {
StarBattleBoard copy = new StarBattleBoard(size, puzzleNum);
for (int r = 0; r < this.regions.size(); ++r) {
StarBattleRegion regionCopy = this.regions.get(r).copy();
for (StarBattleCell cell: regionCopy.getCells()) {
copy.setCell(cell.getLocation().x, cell.getLocation().y, cell);
}
copy.setRegion(r, regionCopy);
}
/*
for (int x = 0; x < this.dimension.width; x++) {
for (int y = 0; y < this.dimension.height; y++) {
copy.setCell(x, y, getCell(x, y).copy());
}
if (x < this.regions.size()) {
copy.regions.add(this.getRegion(x).copy());
}
}
*/
for (PuzzleElement e : modifiedData) {
copy.getPuzzleElement(e).setModifiable(false);
}
Expand Down
Loading

0 comments on commit e51bcd3

Please sign in to comment.