Cards up to help.
1 package ru.alphatech.icfpc.cards;
3 import ru.alphatech.icfpc.game.ICFPCException;
4 import ru.alphatech.icfpc.game.IValue;
5 import ru.alphatech.icfpc.game.Player;
6 import ru.alphatech.icfpc.game.Value;
8 public class Copy implements ICard
11 public IValue returnValue(IValue i, Player proponent, Player opponent)
13 if (i.getClass().equals(Value.class))
15 int iVal = ((Value)i).getValue();
16 if (iVal >= 0 && iVal < 256)
18 return opponent.getSlot(((Value)i).getValue()).getValue();
22 throw new ICFPCException();
27 throw new ICFPCException();