Package org.gnubridge.core

Examples of org.gnubridge.core.Hand


      }
      public static Hand hand4() {
        return new Hand ("Q,10", "3", "Q,J,8,6,5","A,K,J,8,2" );
      }
      public static Hand hand5() {
        return new Hand ("K,2", "A,Q,3", "A,8,6,5,3","K,J,3" );
      }
View Full Code Here


      }
      public static Hand hand5() {
        return new Hand ("K,2", "A,Q,3", "A,8,6,5,3","K,J,3" );
      }
      public static Hand hand6() {
        return new Hand ("A,J,9,7,5", "K,J,10,7", "A,3","K,2" );
      }
View Full Code Here

      }
      public static Hand hand6() {
        return new Hand ("A,J,9,7,5", "K,J,10,7", "A,3","K,2" );
      }
      public static Hand hand7() {
        return new Hand ("A,K,4,3", "A,K,J,2", "2","K,9,8,2" );
      }
View Full Code Here

      }
      public static Hand hand7() {
        return new Hand ("A,K,4,3", "A,K,J,2", "2","K,9,8,2" );
      }
      public static Hand hand8() {
        return new Hand ("A,K,5,4,3", "2", "A,J,9,7,5,4","3" );
      }
View Full Code Here

      }
      public static Hand hand8() {
        return new Hand ("A,K,5,4,3", "2", "A,J,9,7,5,4","3" );
      }
      public static Hand hand9() {
        return new Hand ("A,K,3", "K,J,8", "A,K,6","J,10,9,6" );
      }
View Full Code Here

      }
      public static Hand hand9() {
        return new Hand ("A,K,3", "K,J,8", "A,K,6","J,10,9,6" );
      }
      public static Hand hand10() {
        return new Hand ("K,9,8,7,6", "A,Q,J,9,5", "10,7,5" );
      }
View Full Code Here

      }
      public static Hand hand10() {
        return new Hand ("K,9,8,7,6", "A,Q,J,9,5", "10,7,5" );
      }
      public static Hand hand11() {
        return new Hand ("A,Q,8", "J,8,7,6,4", "A,Q","K,J,6" );
      }
View Full Code Here

      }
      public static Hand hand11() {
        return new Hand ("A,Q,8", "J,8,7,6,4", "A,Q","K,J,6" );
      }
      public static Hand hand12() {
        return new Hand ("A,K,10,2", "J,6,4", "A,Q,8","9,6,4" );
      }
View Full Code Here

import junit.framework.TestCase;

public class ResponseCalculatorTest extends TestCase {
    public void testSingleton() {
      Hand h = new Hand ("6,5,4,3", "10,9,8,7,2", "7,6,2","9" );
      PointCalculator pc = new ResponseCalculator(h, new Bid(1, Spades.i()));
      assertEquals(3, pc.getCombinedPoints());
    }
View Full Code Here

      Hand h = new Hand ("6,5,4,3", "10,9,8,7,2", "7,6,2","9" );
      PointCalculator pc = new ResponseCalculator(h, new Bid(1, Spades.i()));
      assertEquals(3, pc.getCombinedPoints());
    }
    public void testOnlyApplyIfHaveAtLeast4InPartnersColor() {
      Hand h = new Hand ("6,5,4", "10,9,8,7,2", "7,6,3,2","9" );
      PointCalculator pc = new ResponseCalculator(h, new Bid(1, Spades.i()));
      assertEquals(2, pc.getCombinedPoints());
    }
View Full Code Here

TOP

Related Classes of org.gnubridge.core.Hand

Copyright © 2018 www.massapicom. 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.