Package org.gnubridge.core.bidding

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


    assertEquals(ONE_NOTRUMP, rule.getBid());
  }

  public void testDoNotOpenOneNTWhenResponding() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(ONE_CLUBS);
    a.bid(PASS);
    BiddingRule rule = new Open1NT(a, new Hand("K,2", "A,Q,3", "A,8,6,5,3", "K,J,3"));
    assertEquals(null, rule.getBid());
  }
View Full Code Here


  }

  public void testDoNotOpenOneNTWhenResponding() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(ONE_CLUBS);
    a.bid(PASS);
    BiddingRule rule = new Open1NT(a, new Hand("K,2", "A,Q,3", "A,8,6,5,3", "K,J,3"));
    assertEquals(null, rule.getBid());
  }

  public void testOpeningOneNTSecondCall() {
View Full Code Here

    assertEquals(null, rule.getBid());
  }

  public void testOpeningOneNTSecondCall() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(PASS);
    BiddingRule rule = new Open1NT(a, new Hand("K,2", "A,Q,3", "A,8,6,5,3", "K,J,3"));
    assertEquals(ONE_NOTRUMP, rule.getBid());
  }

  public void testCannotOpenOneNTIfInsufficientHCP() {
View Full Code Here

    assertEquals(null, rule.getBid());
  }

  public void testCannotOpenOneNTIfHigherBid() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(new Bid(2, Clubs.i()));
    BiddingRule rule = new Open1NT(a, new Hand("K,2", "A,Q,3", "A,8,6,5,3", "K,J,3"));
    assertEquals(null, rule.getBid());
  }

  public void testRP1() {
View Full Code Here

  /**
   *   Raise partners suit
   */
  public void testBidAt2LevelWith8PointsAnd3Trumps() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(ONE_CLUBS);
    a.bid(ONE_DIAMONDS);
    a.bid(PASS);
    RespondOvercallSuit rule = new RespondOvercallSuit(a, new Hand("10,9,8,7", "K,3,2", "A,J,9", "9,5,4"));
    assertEquals(TWO_DIAMONDS, rule.getBid());
  }
View Full Code Here

   *   Raise partners suit
   */
  public void testBidAt2LevelWith8PointsAnd3Trumps() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(ONE_CLUBS);
    a.bid(ONE_DIAMONDS);
    a.bid(PASS);
    RespondOvercallSuit rule = new RespondOvercallSuit(a, new Hand("10,9,8,7", "K,3,2", "A,J,9", "9,5,4"));
    assertEquals(TWO_DIAMONDS, rule.getBid());
  }

View Full Code Here

   */
  public void testBidAt2LevelWith8PointsAnd3Trumps() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(ONE_CLUBS);
    a.bid(ONE_DIAMONDS);
    a.bid(PASS);
    RespondOvercallSuit rule = new RespondOvercallSuit(a, new Hand("10,9,8,7", "K,3,2", "A,J,9", "9,5,4"));
    assertEquals(TWO_DIAMONDS, rule.getBid());
  }

  public void testRaisePartnerWith8PointsAnd3Trumps() {
View Full Code Here

    assertEquals(TWO_DIAMONDS, rule.getBid());
  }

  public void testRaisePartnerWith8PointsAnd3Trumps() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(ONE_CLUBS);
    a.bid(TWO_DIAMONDS);
    a.bid(PASS);
    RespondOvercallSuit rule = new RespondOvercallSuit(a, new Hand("10,9,8,7", "K,3,2", "A,J,9", "9,5,4"));
    assertEquals(THREE_DIAMONDS, rule.getBid());
  }
View Full Code Here

  }

  public void testRaisePartnerWith8PointsAnd3Trumps() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(ONE_CLUBS);
    a.bid(TWO_DIAMONDS);
    a.bid(PASS);
    RespondOvercallSuit rule = new RespondOvercallSuit(a, new Hand("10,9,8,7", "K,3,2", "A,J,9", "9,5,4"));
    assertEquals(THREE_DIAMONDS, rule.getBid());
  }
View Full Code Here

  public void testRaisePartnerWith8PointsAnd3Trumps() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(ONE_CLUBS);
    a.bid(TWO_DIAMONDS);
    a.bid(PASS);
    RespondOvercallSuit rule = new RespondOvercallSuit(a, new Hand("10,9,8,7", "K,3,2", "A,J,9", "9,5,4"));
    assertEquals(THREE_DIAMONDS, rule.getBid());
  }

  public void testJumpRaisePartnerWith12To14PointsAnd3Trumps() {
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.