Package org.gnubridge.core

Examples of org.gnubridge.core.Hand


    PointCalculator pc = new PointCalculator(h);
    assertTrue(pc.isTame());
  }

  public void testTameHand_5_4_2_2() {
    Hand h = new Hand("A,K,4,3,2", "K,J,9,2", "3,2", "Q,9");
    PointCalculator pc = new PointCalculator(h);
    assertTrue(pc.isTame());
  }
View Full Code Here


    PointCalculator pc = new PointCalculator(h);
    assertTrue(pc.isTame());
  }

  public void testTameHand_5_4_3_1() {
    Hand h = new Hand("A,3,2", "A,K,4,3,2", "K,J,9,2", "Q");
    PointCalculator pc = new PointCalculator(h);
    assertTrue(pc.isTame());
  }
View Full Code Here

    PointCalculator pc = new PointCalculator(h);
    assertTrue(pc.isTame());
  }

  public void testTameHand_6_3_2_2() {
    Hand h = new Hand("A,K,10,7,3,2", "A,K,4", "K,2", "Q,J");
    PointCalculator pc = new PointCalculator(h);
    assertTrue(pc.isTame());
  }
View Full Code Here

    PointCalculator pc = new PointCalculator(h);
    assertTrue(pc.isTame());
  }

  public void testTameHand_6_3_3_1() {
    Hand h = new Hand("A,K,10,7,3,2", "A,K,4", "K,J,2", "J");
    PointCalculator pc = new PointCalculator(h);
    assertTrue(pc.isTame());
  }
View Full Code Here

    PointCalculator pc = new PointCalculator(h);
    assertTrue(pc.isTame());
  }

  public void testRP1() {
    Hand h = RPQuizzes.Basics.Lesson2.hand1();
    PointCalculator pc = new PointCalculator(h);
    assertEquals(16, pc.getCombinedPoints());
  }
View Full Code Here

    PointCalculator pc = new PointCalculator(h);
    assertEquals(16, pc.getCombinedPoints());
  }

  public void testRP2() {
    Hand h = RPQuizzes.Basics.Lesson2.hand2();
    PointCalculator pc = new PointCalculator(h);
    assertEquals(12, pc.getCombinedPoints());
  }
View Full Code Here

    PointCalculator pc = new PointCalculator(h);
    assertEquals(12, pc.getCombinedPoints());
  }

  public void testRP3() {
    Hand h = RPQuizzes.Basics.Lesson2.hand3();
    PointCalculator pc = new PointCalculator(h);
    assertEquals(14, pc.getCombinedPoints());
  }
View Full Code Here

    PointCalculator pc = new PointCalculator(h);
    assertEquals(14, pc.getCombinedPoints());
  }

  public void testRP4() {
    Hand h = RPQuizzes.Basics.Lesson2.hand4();
    PointCalculator pc = new PointCalculator(h);
    assertEquals(15, pc.getCombinedPoints());
  }
View Full Code Here

    PointCalculator pc = new PointCalculator(h);
    assertEquals(15, pc.getCombinedPoints());
  }

  public void testRP5() {
    Hand h = RPQuizzes.Basics.Lesson2.hand5();
    PointCalculator pc = new PointCalculator(h);
    assertEquals(18, pc.getCombinedPoints());
    assertEquals(17, pc.getHighCardPoints());
  }
View Full Code Here

    assertEquals(18, pc.getCombinedPoints());
    assertEquals(17, pc.getHighCardPoints());
  }

  public void testRP6() {
    Hand h = RPQuizzes.Basics.Lesson2.hand6();
    PointCalculator pc = new PointCalculator(h);
    assertEquals(18, 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.