equal
deleted
inserted
replaced
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.Run; |
6 import ru.alphatech.icfpc.game.Run; |
7 import ru.alphatech.icfpc.game.Value; |
7 import ru.alphatech.icfpc.game.Value; |
8 |
8 |
9 public class Dec implements ICard |
9 public class Dec extends AbstractCard |
10 { |
10 { |
11 @Override |
11 @Override |
12 public String getName() { |
12 public String getName() { |
13 return "dec"; |
13 return "dec"; |
14 } |
14 } |
15 |
15 |
16 @Override |
16 @Override |
17 public IValue returnValue(IValue iobj, Player proponent, Player opponent) |
17 public IValue returnValue(IValue iobj, Player proponent, Player opponent) |
18 { |
18 { |
|
19 incAndTest(); |
|
20 |
19 if(iobj instanceof Value) |
21 if(iobj instanceof Value) |
20 { |
22 { |
21 int i = ((Value)iobj).getValue(); |
23 int i = ((Value)iobj).getValue(); |
22 |
24 |
23 if (i >= 0 && i <= 255) |
25 if (i >= 0 && i <= 255) |