diff -r 6ae7d1eafd90 -r d6c063577f0d src/main/java/ru/alphatech/icfpc/game/Player.java --- a/src/main/java/ru/alphatech/icfpc/game/Player.java Sun Jun 19 20:22:02 2011 +0400 +++ b/src/main/java/ru/alphatech/icfpc/game/Player.java Sun Jun 19 20:48:53 2011 +0400 @@ -1,6 +1,8 @@ package ru.alphatech.icfpc.game; import ru.alphatech.icfpc.cards.I; +import ru.alphatech.icfpc.cards.ICard; +import ru.alphatech.icfpc.cards.Zero; @@ -40,7 +42,19 @@ try{ switch(batch.operationType){ case CARD_TO_SLOT: - batch.card.returnValue(getSlot(batch.slot.getId()).getValue(), this, myOpponent); + IValue value = getSlot(batch.slot.getId()).getValue(); + + if(value instanceof Zero) + { + value = new Value(0); + } + + if(batch.card instanceof Zero) + { + batch.card = (ICard) new Value(0); + } + + batch.card.returnValue(value, this, myOpponent); break; case SLOT_TO_CARD: getSlot(batch.slot.getId()).getValue().returnValue(batch.card, this, myOpponent);