equal
deleted
inserted
replaced
|
1 /*********************************************** |
|
2 * icfpc-2011 |
|
3 * بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِِ |
|
4 * Time: 19.06.2011 18:55:25 |
|
5 ***********************************************/ |
|
6 package ru.alphatech.icfpc.cards; |
|
7 |
|
8 import ru.alphatech.icfpc.game.ICFPCException; |
|
9 import ru.alphatech.icfpc.game.Run; |
|
10 |
|
11 |
|
12 public abstract class AbstractCard implements ICard |
|
13 { |
|
14 @Override |
|
15 public void incAndTest() |
|
16 { |
|
17 int callcount = Run.incCallCount(); |
|
18 |
|
19 if(callcount > 1000) |
|
20 { |
|
21 throw new ICFPCException(); |
|
22 } |
|
23 } |
|
24 } |