src/main/java/ru/alphatech/icfpc/game/Player.java
changeset 140 9ddaa68cccae
parent 127 57ee53a3cf56
     1.1 --- a/src/main/java/ru/alphatech/icfpc/game/Player.java	Mon Jun 20 15:50:55 2011 +0400
     1.2 +++ b/src/main/java/ru/alphatech/icfpc/game/Player.java	Tue Jun 21 11:55:31 2011 +0400
     1.3 @@ -67,7 +67,14 @@
     1.4  				getSlot(batch.slot.getId()).putValue(batch.card.returnValue(value, this, myOpponent));
     1.5  				break;
     1.6  			case SLOT_TO_CARD:
     1.7 -				getSlot(batch.slot.getId()).putValue(getSlot(batch.slot.getId()).getValue().returnValue(batch.card, this, myOpponent));
     1.8 +				IValue valueC = batch.card;
     1.9 +				
    1.10 +				if(valueC instanceof Zero)
    1.11 +				{
    1.12 +					valueC = new Value(0);
    1.13 +				}
    1.14 +
    1.15 +				getSlot(batch.slot.getId()).putValue(getSlot(batch.slot.getId()).getValue().returnValue(valueC, this, myOpponent));
    1.16  				break;
    1.17  			}
    1.18  		} catch (ICFPCException exception){