1.1 --- a/src/main/java/ru/alphatech/icfpc/game/AbstractPolicy.java Mon Jun 20 00:49:37 2011 +0400
1.2 +++ b/src/main/java/ru/alphatech/icfpc/game/AbstractPolicy.java Mon Jun 20 01:42:04 2011 +0400
1.3 @@ -38,21 +38,7 @@
1.4 {
1.5 ArrayList<Batch> retArray = new ArrayList<Batch>();
1.6
1.7 - IValue targetValue = targetSlot.getValue();
1.8 -
1.9 - if(targetValue instanceof ICard){
1.10 - retArray.addAll(smartAlg(0, number, targetSlot));
1.11 - }else{
1.12 - Value numTargetValue = (Value) targetValue;
1.13 - if( numTargetValue.getValue() == number ){
1.14 - return retArray;
1.15 - }else
1.16 - if( numTargetValue.getValue() > number ){
1.17 - retArray.addAll( smartAlg(0, number, targetSlot) );
1.18 - }else{
1.19 - retArray.addAll( smartAlg(numTargetValue.getValue(), number, targetSlot) );
1.20 - }
1.21 - }
1.22 + retArray.addAll(smartAlg(0, number, targetSlot));
1.23
1.24 return retArray;
1.25 }