src/main/java/ru/alphatech/icfpc/policy/VitalityBoostPolicy.java
author Azamat S. Kalimoulline <turtle@bazon.ru>
Sun, 19 Jun 2011 11:14:05 +0400
changeset 28 7ff8ba5fb4cf
parent 21 b0748d485790
child 32 04ac70718172
permissions -rw-r--r--
Player slots.
     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 }