equal
deleted
inserted
replaced
1 package ru.alphatech.icfpc.cards; |
1 package ru.alphatech.icfpc.cards; |
2 |
2 |
|
3 import ru.alphatech.icfpc.game.ICFPCException; |
3 import ru.alphatech.icfpc.game.IValue; |
4 import ru.alphatech.icfpc.game.IValue; |
4 import ru.alphatech.icfpc.game.Player; |
5 import ru.alphatech.icfpc.game.Player; |
5 import ru.alphatech.icfpc.game.Value; |
6 import ru.alphatech.icfpc.game.Value; |
6 |
7 |
7 public class Succ implements ICard |
8 public class Succ implements ICard |
15 { |
16 { |
16 return new Value(65535); |
17 return new Value(65535); |
17 } |
18 } |
18 return new Value(((Value)value).getValue() + 1); |
19 return new Value(((Value)value).getValue() + 1); |
19 } |
20 } |
20 |
21 else |
21 return new Value(-100); |
22 { |
|
23 throw new ICFPCException(); |
|
24 } |
22 } |
25 } |
23 } |
26 } |