Skip to content

Commit

Permalink
Remove dams and crumbs map guarantee
Browse files Browse the repository at this point in the history
  • Loading branch information
hstennes committed Jan 16, 2024
1 parent ae4e9ea commit 207ba59
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions engine/src/main/battlecode/world/LiveMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -407,20 +407,15 @@ public void assertIsValid() throws Exception{
}
}
if(this.damArray[i]) {
if(this.breadArray[i] != 0) {
throw new RuntimeException("Dams can't be on the same square as bread.");
}
if(this.spawnZoneArray[i] != 0) {
throw new RuntimeException("Dams can't be on the same square as spawn zones.");
}
}

if(this.waterArray[i]) {
if(this.spawnZoneArray[i] != 0) {
throw new RuntimeException("Water can't be on the same square as spawn zones.");
}
}

}
assertSpawnZoneDistances();
assertSpawnZonesAreValid();
Expand Down

0 comments on commit 207ba59

Please sign in to comment.