Cards done. Only interpretation of zero card is under question mark.
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 Succ implements ICard
11 public IValue returnValue(IValue nobj, Player proponent, Player opponent)
13 if(nobj instanceof Value)
15 int n = ((Value)nobj).getValue();
19 return new Value(65535);
23 return new Value(n + 1);
28 throw new ICFPCException();