diff -r 70cfa8a066df -r 9530f55e9639 icfp-model/src/main/java/ru/bosony/model/mine/Mine.java --- a/icfp-model/src/main/java/ru/bosony/model/mine/Mine.java Mon Jul 16 18:59:13 2012 +0400 +++ b/icfp-model/src/main/java/ru/bosony/model/mine/Mine.java Tue Jul 17 21:38:39 2012 +0400 @@ -48,13 +48,17 @@ protected static String firstTrampolineRegexp = "(?s).*?Trampoline ([A-I]) targets ([1-9])"; public Mine(String text) { - fromText(text); + this(text, null); if (findCells(OpenLambdaLift).size() != 0) throw new RuntimeException("Detected OpenLambdaLift in new map!"); if (findCells(MiningRobot).size() != 1) throw new RuntimeException("New map does not contain a robot!"); if (findCells(ClosedLambdaLift).size() != 1) throw new RuntimeException("New map does not contain a ClosedLambdaLift!"); + } + + protected Mine(String text, Object obj) { + fromText(text); lambdasAndHighOrderRocksStartCount = findCells(Lambda).size() + findCells(CellContent.HighOrderRock).size(); } @@ -310,8 +314,8 @@ } @Override - public Mine clone() throws CloneNotSupportedException { - return new Mine(toText()); + public Mine clone() { + return new Mine(toText(), null); } }