equal
deleted
inserted
replaced
3 import ru.alphatech.icfpc.game.ICFPCException; |
3 import ru.alphatech.icfpc.game.ICFPCException; |
4 import ru.alphatech.icfpc.game.IValue; |
4 import ru.alphatech.icfpc.game.IValue; |
5 import ru.alphatech.icfpc.game.Player; |
5 import ru.alphatech.icfpc.game.Player; |
6 import ru.alphatech.icfpc.game.Value; |
6 import ru.alphatech.icfpc.game.Value; |
7 |
7 |
8 public class Succ implements ICard |
8 public class Succ extends AbstractCard |
9 { |
9 { |
10 @Override |
10 @Override |
11 public String getName() { |
11 public String getName() { |
12 return "succ"; |
12 return "succ"; |
13 } |
13 } |
14 |
14 |
15 @Override |
15 @Override |
16 public IValue returnValue(IValue nobj, Player proponent, Player opponent) |
16 public IValue returnValue(IValue nobj, Player proponent, Player opponent) |
17 { |
17 { |
|
18 incAndTest(); |
|
19 |
18 if(nobj instanceof Value) |
20 if(nobj instanceof Value) |
19 { |
21 { |
20 int n = ((Value)nobj).getValue(); |
22 int n = ((Value)nobj).getValue(); |
21 |
23 |
22 if (n == 65535) |
24 if (n == 65535) |