src/main/java/ru/alphatech/icfpc/game/Player.java
changeset 127 57ee53a3cf56
parent 122 845c89fa268e
child 140 9ddaa68cccae
equal deleted inserted replaced
126:6aa46f954627 127:57ee53a3cf56
    62 				if(batch.card instanceof Zero)
    62 				if(batch.card instanceof Zero)
    63 				{
    63 				{
    64 					batch.card = (ICard) new Value(0);
    64 					batch.card = (ICard) new Value(0);
    65 				}
    65 				}
    66 
    66 
    67 				batch.card.returnValue(value, this, myOpponent);
    67 				getSlot(batch.slot.getId()).putValue(batch.card.returnValue(value, this, myOpponent));
    68 				break;
    68 				break;
    69 			case SLOT_TO_CARD:
    69 			case SLOT_TO_CARD:
    70 				getSlot(batch.slot.getId()).getValue().returnValue(batch.card, this, myOpponent);
    70 				getSlot(batch.slot.getId()).putValue(getSlot(batch.slot.getId()).getValue().returnValue(batch.card, this, myOpponent));
    71 				break;
    71 				break;
    72 			}
    72 			}
    73 		} catch (ICFPCException exception){
    73 		} catch (ICFPCException exception){
    74 			getSlot(batch.slot.getId()).putValue(new I());
    74 			getSlot(batch.slot.getId()).putValue(new I());
    75 		}
    75 		}