Examples of BiddingAgent


Examples of org.gnubridge.core.bidding.BiddingAgent

      MainController mainController = makeController();
      Auctioneer auction = mainController.getBiddingController().getAuction();
      System.out.println(" ** ( " + i + " )*** Automated bidding on a random game *****");
      mainController.getBiddingController().getCardHolder().printHandsDebug();
      Hand humanHand = new Hand(mainController.getBiddingController().getHuman().getHand());
      BiddingAgent humanAgent = new BiddingAgent(auction, humanHand);
      System.out.println("  Initial Calls: " + auction.getCalls());

      while (!auction.biddingFinished()) {

        Bid humanBid = humanAgent.getBid();
        System.out.println("  human about to bid: " + humanBid);
        if (new Pass().equals(humanBid)) {
          mainController.getBiddingController().placeBid(-1, "PASS");
        } else {
          mainController.getBiddingController().placeBid(humanBid.getValue(), humanBid.getTrump().toString());
View Full Code Here

Examples of org.gnubridge.core.bidding.BiddingAgent

  }

  private void doAutomatedBidding() {
    while (!auction.biddingFinished() && !auction.getNextToBid().equals(human.getDirection2())) {
      Hand hand = new Hand(cardHolder.getPlayer(auction.getNextToBid().getValue()).getHand());
      BiddingAgent ba = new BiddingAgent(auction, hand);
      auction.bid(ba.getBid());
      view.auctionStateChanged();
    }

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.