| author | Azamat S. Kalimoulline <turtle@bazon.ru> |
| Sun, 19 Jun 2011 19:14:10 +0400 | |
| changeset 104 | ecaee9f1a2be |
| child 110 | d6c063577f0d |
| permissions | -rw-r--r-- |
1 /***********************************************
2 * icfpc-2011
3 * بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِِ
4 * Time: 19.06.2011 18:55:25
5 ***********************************************/
6 package ru.alphatech.icfpc.cards;
8 import ru.alphatech.icfpc.game.ICFPCException;
9 import ru.alphatech.icfpc.game.Run;
12 public abstract class AbstractCard implements ICard
13 {
14 @Override
15 public void incAndTest()
16 {
17 int callcount = Run.incCallCount();
19 if(callcount > 1000)
20 {
21 throw new ICFPCException();
22 }
23 }
24 }