src/main/java/ru/alphatech/icfpc/policy/VitalityBoostPolicy.java
changeset 32 04ac70718172
parent 21 b0748d485790
child 41 c5d25e56aafc
     1.1 --- a/src/main/java/ru/alphatech/icfpc/policy/VitalityBoostPolicy.java	Sun Jun 19 11:53:33 2011 +0400
     1.2 +++ b/src/main/java/ru/alphatech/icfpc/policy/VitalityBoostPolicy.java	Sun Jun 19 11:53:49 2011 +0400
     1.3 @@ -1,52 +1,11 @@
     1.4  package ru.alphatech.icfpc.policy;
     1.5  
     1.6 -import ru.alphatech.icfpc.cards.Dbl;
     1.7 -import ru.alphatech.icfpc.cards.Succ;
     1.8 -import ru.alphatech.icfpc.cards.Zero;
     1.9  import ru.alphatech.icfpc.game.Player;
    1.10  
    1.11  public class VitalityBoostPolicy extends AbstractPolicy {
    1.12 -	
    1.13 -	public static final int turnsCount = 100;
    1.14 -	
    1.15 -	public VitalityBoostPolicy(int targetSlot, Player player) {
    1.16 -		super(turnsCount, player);
    1.17 -		this.targetSlot = targetSlot;
    1.18 -		
    1.19 -		maxValueSlotNum = player.getStatistic().maxValueSlotNum;
    1.20 -		maxValue = player.getStatistic().maxValue;
    1.21 -		firstIdentitySlot = -1;
    1.22 +
    1.23 +	public VitalityBoostPolicy(Player player) {
    1.24 +		super(player);
    1.25  	}
    1.26  	
    1.27 -	protected int targetSlot = -1;
    1.28 -	protected int maxValueSlotNum = -1;
    1.29 -	protected int maxValue = -1;
    1.30 -	protected int firstIdentitySlot = -1;
    1.31 -	
    1.32 -	public boolean next() {
    1.33 -		if ( super.next() ){
    1.34 -			
    1.35 -			switch (getCurrentTurns()) {
    1.36 -				case 0:
    1.37 -				break;
    1.38 -				case 1:
    1.39 -				case 2:
    1.40 -				break;
    1.41 -				case 3:
    1.42 -				case 4:
    1.43 -				case 5:
    1.44 -				case 6:
    1.45 -				case 7:
    1.46 -				case 8:
    1.47 -				case 9:
    1.48 -				case 10:
    1.49 -				break;
    1.50 -				case 11:
    1.51 -				break;
    1.52 -			}
    1.53 -			
    1.54 -		}
    1.55 -		return false;
    1.56 -	}
    1.57 -
    1.58  }