Call Count.
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 Dbl extends AbstractCard
11 public String getName() {
16 public IValue returnValue(IValue nobj, Player proponent, Player opponent)
20 if(nobj instanceof Value)
22 int n = ((Value)nobj).getValue();
26 return new Value(65535);
30 return new Value(n * 2);
35 throw new ICFPCException();