3839404142434445
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,3,2", "A,3", "A,Q,8,6", "K,J,5,3")); assertEquals(new Bid(3, NoTrump.i()), rule.getBid()); }
4849505152535455
a.bid(new Bid(1, NoTrump.i())); a.bid(new Pass()); a.bid(new Bid(3, Diamonds.i())); a.bid(new Pass()); Rebid1NT rule = new Rebid1NT( a, new Hand("K,3,2", "A,3", "A,Q,8,6", "K,J,5,3")); assertNull(rule.getBid()); }
5859606162636465
a.bid(new Bid(1, NoTrump.i())); a.bid(new Pass()); a.bid(new Bid(2, Spades.i())); a.bid(new Pass()); Rebid1NT rule = new Rebid1NT( a, new Hand("K,3,2", "A,3", "A,Q,8,6", "K,J,5,3")); assertEquals(new Pass(), rule.getBid()); }
6869707172737475
a.bid(new Bid(1, NoTrump.i())); a.bid(new Pass()); a.bid(new Bid(2, NoTrump.i())); a.bid(new Pass()); Rebid1NT rule = new Rebid1NT( a, new Hand("K,3,2", "A,3", "A,J,8,6", "K,J,5,3")); assertEquals(new Pass(), rule.getBid()); }
7879808182838485
a.bid(new Bid(1, NoTrump.i())); a.bid(new Pass()); a.bid(new Bid(2, NoTrump.i())); a.bid(new Pass()); Rebid1NT rule = new Rebid1NT( a, new Hand("K,3,2", "A,3", "A,K,8,6", "K,J,5,3")); assertEquals(new Bid(3, NoTrump.i()), rule.getBid()); }
8889909192939495
a.bid(new Bid(1, NoTrump.i())); a.bid(new Pass()); a.bid(new Bid(3, NoTrump.i())); a.bid(new Pass()); Rebid1NT rule = new Rebid1NT( a, new Hand("K,3,2", "A,3", "A,K,8,6", "K,J,5,3")); assertEquals(new Pass(), rule.getBid()); }
96979899100101102103
public void testDoNotRespondIfPartnersBidWasAnOpening() { Auctioneer a = new Auctioneer(West.i()); a.bid(new Bid(3, Spades.i())); a.bid(new Pass()); Rebid1NT rule = new Rebid1NT( a, new Hand("K,3,2", "A,3", "A,Q,8,6", "K,J,5,3")); assertNull(rule.getBid()); }
106107108109110111112113
a.bid(new Bid(1, Spades.i())); a.bid(new Pass()); a.bid(new Bid(3, Spades.i())); a.bid(new Pass()); Rebid1NT rule = new Rebid1NT( a, new Hand("K,3,2", "A,3", "A,Q,8,6", "K,J,5,3")); assertEquals(null, rule.getBid()); }
117118119120121122123124
a.bid(new Bid(1, NoTrump.i())); a.bid(new Pass()); a.bid(new Pass()); a.bid(new Pass()); Rebid1NT rule = new Rebid1NT( a, new Hand("A,K,5,2", "8,6,5,2", "A,Q,9", "A,7")); assertEquals(null, rule.getBid()); }
1516171819202122
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()); }