示例#1
0
  @Override
  public void offer(Offer offTemp) {
    G1Player.printArray(info.getAintInHand(), "after eating - info.getAintInHand():");
    int[] aintOffer = new int[info.getIntColorNum()];
    int[] aintDesire = new int[info.getIntColorNum()];
    offerStrategy.getOffer(aintOffer, aintDesire, info);

    G1Player.printArray(aintOffer, "aintOffer");
    G1Player.printArray(aintDesire, "aintDesire");
    offTemp.setOffer(aintOffer, aintDesire);
  }
示例#2
0
 @Override
 public void eat(int[] aintTempEat) {
   G1Player.printArray(info.getAintInHand(), "[G1Player] [eat] info.getAintInHand()");
   eatStrategy.update(aintTempEat, info);
   G1Player.printArray(aintTempEat, "[G1Player] [eat] aintTempEat");
   for (int i = 0; i < aintTempEat.length; i++) {
     if (aintTempEat[i] != 0) {
       // System.out.println("[G1Player] [eat] eating Color: " + i);
       info.setIntLastEatIndex(i);
       info.setIntLastEatNum(aintTempEat[i]);
       break;
     }
   }
 }