Examples of biddingFinished()


Examples of org.gnubridge.core.bidding.Auctioneer.biddingFinished()

      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");
View Full Code Here

Examples of org.gnubridge.core.bidding.Auctioneer.biddingFinished()

    preInitializeGameWithHumanToBidFirst();
    MainController mainController = makeController();
    Auctioneer auction = mainController.getBiddingController().getAuction();
    mainController.getBiddingController().placeBid(7, "NT");
    assertEquals("3 passes should follow 7NT bid", 4, auction.getCalls().size());
    assertTrue("Auction not complete even though highest bid was placed", auction.biddingFinished());
  }

  private void preInitializeGameWithHumanToBidFirst() {
    Deal g = new Deal(null);
    GameUtils.initializeRandom(g, TRICKS_PER_DEAL);
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.