src/main/java/ru/alphatech/icfpc/policy/VitalityBoostPolicy.java
changeset 32 04ac70718172
parent 21 b0748d485790
child 41 c5d25e56aafc
equal deleted inserted replaced
31:7b9682308866 32:04ac70718172
     1 package ru.alphatech.icfpc.policy;
     1 package ru.alphatech.icfpc.policy;
     2 
     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;
     3 import ru.alphatech.icfpc.game.Player;
     7 
     4 
     8 public class VitalityBoostPolicy extends AbstractPolicy {
     5 public class VitalityBoostPolicy extends AbstractPolicy {
     9 	
     6 
    10 	public static final int turnsCount = 100;
     7 	public VitalityBoostPolicy(Player player) {
    11 	
     8 		super(player);
    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 	}
     9 	}
    20 	
    10 	
    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 }
    11 }