Package org.gnubridge.core.bidding

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


    assertEquals(new Bid(2, NoTrump.i()), rule.getBid());
  }

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

    assertEquals(null, rule.getBid());
  }
View Full Code Here


  }

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

    assertEquals(null, rule.getBid());
  }
View Full Code Here

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

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

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

  }

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

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

    assertEquals(new Bid(3, NoTrump.i()), rule.getBid());
  }

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

    assertEquals(null, rule.getBid());
  }
View Full Code Here

  }

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

    assertEquals(null, rule.getBid());
  }
View Full Code Here

import org.gnubridge.core.deck.Spades;

public class Rebid1NTTest extends TestCase {
  public void testRaiseTo4IfAtLeast3CardsInColor() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(new Bid(1, NoTrump.i()));
    a.bid(new Pass());
    a.bid(new Bid(3, Hearts.i()));
    a.bid(new Pass());
    Rebid1NT rule = new Rebid1NT(
        a, new Hand("K,2", "A,3,2", "A,Q,8,6", "K,J,5,3"));
View Full Code Here

public class Rebid1NTTest extends TestCase {
  public void testRaiseTo4IfAtLeast3CardsInColor() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(new Bid(1, NoTrump.i()));
    a.bid(new Pass());
    a.bid(new Bid(3, Hearts.i()));
    a.bid(new Pass());
    Rebid1NT rule = new Rebid1NT(
        a, new Hand("K,2", "A,3,2", "A,Q,8,6", "K,J,5,3"));
    assertEquals(new Bid(4, Hearts.i()), rule.getBid());
View Full Code Here

public class Rebid1NTTest extends TestCase {
  public void testRaiseTo4IfAtLeast3CardsInColor() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(new Bid(1, NoTrump.i()));
    a.bid(new Pass());
    a.bid(new Bid(3, Hearts.i()));
    a.bid(new Pass());
    Rebid1NT rule = new Rebid1NT(
        a, new Hand("K,2", "A,3,2", "A,Q,8,6", "K,J,5,3"));
    assertEquals(new Bid(4, Hearts.i()), rule.getBid());
View Full Code Here

  public void testRaiseTo4IfAtLeast3CardsInColor() {
    Auctioneer a = new Auctioneer(West.i());
    a.bid(new Bid(1, NoTrump.i()));
    a.bid(new Pass());
    a.bid(new Bid(3, Hearts.i()));
    a.bid(new Pass());
    Rebid1NT rule = new Rebid1NT(
        a, new Hand("K,2", "A,3,2", "A,Q,8,6", "K,J,5,3"));
    assertEquals(new Bid(4, Hearts.i()), rule.getBid());

    Auctioneer a2 = new Auctioneer(West.i());
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.