equal
deleted
inserted
replaced
|
1 package ru.alphatech.icfpc.policy; |
|
2 |
|
3 import ru.alphatech.icfpc.cards.Dbl; |
|
4 import ru.alphatech.icfpc.cards.Succ; |
|
5 import ru.alphatech.icfpc.cards.Zero; |
|
6 import ru.alphatech.icfpc.game.Player; |
|
7 |
|
8 public class VitalityBoostPolicy extends AbstractPolicy { |
|
9 |
|
10 public static final int turnsCount = 100; |
|
11 |
|
12 public VitalityBoostPolicy(int targetSlot, Player player) { |
|
13 super(turnsCount, player); |
|
14 this.targetSlot = targetSlot; |
|
15 |
|
16 maxValueSlotNum = player.getStatistic().maxValueSlotNum; |
|
17 maxValue = player.getStatistic().maxValue; |
|
18 firstIdentitySlot = -1; |
|
19 } |
|
20 |
|
21 protected int targetSlot = -1; |
|
22 protected int maxValueSlotNum = -1; |
|
23 protected int maxValue = -1; |
|
24 protected int firstIdentitySlot = -1; |
|
25 |
|
26 public boolean next() { |
|
27 if ( super.next() ){ |
|
28 |
|
29 switch (getCurrentTurns()) { |
|
30 case 0: |
|
31 break; |
|
32 case 1: |
|
33 case 2: |
|
34 break; |
|
35 case 3: |
|
36 case 4: |
|
37 case 5: |
|
38 case 6: |
|
39 case 7: |
|
40 case 8: |
|
41 case 9: |
|
42 case 10: |
|
43 break; |
|
44 case 11: |
|
45 break; |
|
46 } |
|
47 |
|
48 } |
|
49 return false; |
|
50 } |
|
51 |
|
52 } |