From 207ba59fb4c604ca9ca14ffc4849e0d8e7f4a5d8 Mon Sep 17 00:00:00 2001 From: hank Date: Mon, 15 Jan 2024 23:52:15 -0500 Subject: [PATCH] Remove dams and crumbs map guarantee --- engine/src/main/battlecode/world/LiveMap.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/engine/src/main/battlecode/world/LiveMap.java b/engine/src/main/battlecode/world/LiveMap.java index c7c28175..6785f884 100644 --- a/engine/src/main/battlecode/world/LiveMap.java +++ b/engine/src/main/battlecode/world/LiveMap.java @@ -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();