Package org.gnubridge.core.bidding

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


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

  public void testOnlyApplyToOvercallResponses() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(ONE_DIAMONDS);
    a.bid(PASS);
    RespondOvercallSuit rule = new RespondOvercallSuit(a, new Hand("10,9,8,7,6", "", "K,10,9,2", "10,9,5,4"));
    assertEquals(null, rule.getBid());
  }
View Full Code Here


  }

  public void testOnlyApplyToOvercallResponses() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(ONE_DIAMONDS);
    a.bid(PASS);
    RespondOvercallSuit rule = new RespondOvercallSuit(a, new Hand("10,9,8,7,6", "", "K,10,9,2", "10,9,5,4"));
    assertEquals(null, rule.getBid());
  }

  public void testOnlyApplyToSuitOvercallsNoTrump() {
View Full Code Here

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

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

  }

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

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

  public void testOnlyApplyToSuitOvercallsDouble() {
View Full Code Here

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

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

  }

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

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

}
View Full Code Here

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

  public void testRaise2WhenOver12AndBalanced() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(new Bid(1, Diamonds.i()));
    a.bid(new Pass());
    Respond1ColorWithNT rule = new Respond1ColorWithNT(a, new Hand("10,5,4", "A,K", "K,9,8,6", "K,4,3,2"));

    assertEquals(new Bid(2, NoTrump.i()), rule.getBid());
  }
View Full Code Here

  }

  public void testRaise2WhenOver12AndBalanced() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(new Bid(1, Diamonds.i()));
    a.bid(new Pass());
    Respond1ColorWithNT rule = new Respond1ColorWithNT(a, new Hand("10,5,4", "A,K", "K,9,8,6", "K,4,3,2"));

    assertEquals(new Bid(2, NoTrump.i()), rule.getBid());
  }
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.