Package org.gnubridge.core.bidding

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


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

  public void testJumpHigherBidUnbidSuitWith12PointsAnd5Trumps() {
View Full Code Here


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

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

  }

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

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

  public void testBidGameUnbidSuitWith15PointsAnd5Trumps() {
View Full Code Here

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

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

  }

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

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

  /**
 
View Full Code Here

   *  respond no trump
   */

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

   */

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

View Full Code Here

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

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