Package org.gnubridge.core

Examples of org.gnubridge.core.Hand


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

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


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

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

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

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

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

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

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

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

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

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

public class RPQuizzes {
  public static class Basics {
    public static class Lesson2 {
      public static Hand hand1() {
        return new Hand (
            Ace.of(Spades.i()), Jack.of(Spades.i()), Ten.of(Spades.i()), Six.of(Spades.i()),
            King.of(Hearts.i()), Jack.of(Hearts.i()), Three.of(Hearts.i()),
            Nine.of(Diamonds.i()), Eight.of(Diamonds.i()), Six.of(Diamonds.i()),
            Ace.of(Clubs.i()), King.of(Clubs.i()), Two.of(Clubs.i())
            );
View Full Code Here

            Ace.of(Clubs.i()), King.of(Clubs.i()), Two.of(Clubs.i())
            );
       
      }
      public static Hand hand2() {
        return new Hand (
            Ace.of(Spades.i()), Jack.of(Spades.i()), Nine.of(Spades.i()), Seven.of(Spades.i()), Five.of(Spades.i()),
            Three.of(Hearts.i()), Two.of(Hearts.i()),
            King.of(Diamonds.i()), Queen.of(Diamonds.i()), Seven.of(Diamonds.i()), Five.of(Diamonds.i()),
            Four.of(Clubs.i()), Two.of(Clubs.i())
            )
View Full Code Here

            King.of(Diamonds.i()), Queen.of(Diamonds.i()), Seven.of(Diamonds.i()), Five.of(Diamonds.i()),
            Four.of(Clubs.i()), Two.of(Clubs.i())
            )
      }
      public static Hand hand3() {
        return new Hand ("A,K,4,3", "K,J,9,2", "6,2","Q,9,7" );
      }
View Full Code Here

      }
      public static Hand hand3() {
        return new Hand ("A,K,4,3", "K,J,9,2", "6,2","Q,9,7" );
      }
      public static Hand hand4() {
        return new Hand ("Q,10", "3", "Q,J,8,6,5","A,K,J,8,2" );
      }
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.