Package org.gnubridge.core.deck

Examples of org.gnubridge.core.deck.Trump


  List<SearchMonkey> monkeys;

  public void testEquivaltenceVariousPruneStrategies() {
    for (int cardDeal = 0; cardDeal < DEALS_TO_TRY; cardDeal++) {
      monkeys = new ArrayList<SearchMonkey>();
      Trump trump = determineTrump(cardDeal);
      g = new Deal(trump);
      GameUtils.initializeRandom(g, CARDS_TO_DEAL);
      System.out.println("*********** DEAL " + cardDeal + " ***********");
      g.playOneTrick(); //somewhat randomizes who's to move next
      g.printHands();
View Full Code Here


  public void testGaugeImprovements() {
    int CARDS_TO_DEAL = 4;
    int DEALS_TO_TRY = 25;
    for (int cardDeal = 0; cardDeal < DEALS_TO_TRY; cardDeal++) {
      monkeys = new ArrayList<SearchMonkey>();
      Trump trump = determineTrump(cardDeal);
      g = new Deal(trump);
      GameUtils.initializeRandom(g, CARDS_TO_DEAL);
      System.out.println("*********** DEAL " + cardDeal + " ***********");
      g.playOneTrick(); //somewhat randomizes who's to move next
      g.printHands();
View Full Code Here

    }
    return result;
  }

  private Trump getStrongerMinor() {
    Trump result = null;
    if (hand.getSuitLength(Clubs.i()) > hand.getSuitLength(Diamonds.i())) {
      result = Clubs.i();
    } else if (hand.getSuitLength(Clubs.i()) == 3
        && hand.getSuitLength(Diamonds.i()) == 3) {
      if (pc.getHighCardPoints(hand.getSuitHi2Low(Clubs.i())) > pc
View Full Code Here

TOP

Related Classes of org.gnubridge.core.deck.Trump

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.