Examples of Card


Examples of net.coljac.pirates.Card

        it.remove();
      }
    }
    for(String line: lines) {
      String[] tokens = line.split("\t");
      Card treasure = new Treasure();
      treasure.setExpansion("Pirates of the " + tokens[1]);
      treasure.setName(tokens[3]);
      treasure.setPoints(0);
      treasure.setRarity(tokens[2]);
      treasure.setRules(tokens[4]);
      treasure.setNumber(tokens[0]);
      db.getCards().add(treasure);
    }

    db.save();
  }
View Full Code Here

Examples of net.ocheyedan.wrk.trello.Card

                }
                wrkIds.put(wrkId, String.format("l:%s", list.getId()));
                Output.print("  ^b^%s^r^ ^black^| %s^r^", list.getName(), wrkId);
                return wrkIds;
            case Card:
                Card card = RestTemplate.post(url, new TypeReference<Card>() { });
                if (card == null) {
                    Output.print("^red^Invalid id or insufficient privileges.^r^");
                    break;
                }
                String labels = Cards.buildLabel(card.getLabels());
                wrkIds.put(wrkId, String.format("c:%s", card.getId()));
                Output.print("  ^b^%s^r^%s ^black^| %s^r^", card.getName(), labels, wrkId);
                Output.print("    ^black^%s^r^", Cards.getPrettyUrl(card));
                return wrkIds;
        }
        return Collections.emptyMap();
    }
View Full Code Here

Examples of net.sf.nebulacards.ui.cards.Card

      }
    }
    layout.setColumns(num);
    // add new buttons
    for (int i = numButtons; i < num; i++) {
      buttons[i] = new Card();
      buttons[i].addMouseListener(this);
      hand[i] = null;
      add(buttons[i]);
    }
    numButtons = num;
View Full Code Here

Examples of objectstructures.Card

   
  }
 
  private void _transition_exprAction__constructor_transitions0_actions0(final Card it) {
   
    Card _card = new Card('S', 1);
    Card _c = this.c = _card;
   
  }
View Full Code Here

Examples of org.as.jtrello.cards.Card

  //TODO Check returned object values
 
  @Test
  public void testGet() {
    try {
      Card card = client.getCards().get(props.getProperty("TRELLO_CARD1"));
      System.out.println("DEBUG card=" + card.toString());
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }
    try {
      Card card = client.getCards().get(props.getProperty("TRELLO_CARD2"));
      System.out.println("DEBUG card=" + card.toString());
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }
  }
View Full Code Here

Examples of org.cspoker.common.elements.cards.Card

  protected void drawOpenCard() {
    game.addOpenCard(drawCard());
  }
 
  protected void drawOpenCardAndPublishCommonCard() {
    Card card = drawCard();
    game.addOpenCard(card);
    gameMediator.publishNewCommonCardsEvent(new NewCommunityCardsEvent(EnumSet.of(card)));
  }
View Full Code Here

Examples of org.gnubridge.core.Card

import org.gnubridge.core.Card;

public class Four {
  public static Card of(Suit denomination) {
    return new Card("4", denomination);
  }
View Full Code Here

Examples of org.objectweb.speedo.pobjects.sequence.id.speedoExtension.Card

    PersistenceManager pm = pmf.getPersistenceManager();
    pm.getObjectIdClass(Card.class);
    //get the sequence
    Sequence s = pm.getSequence(CARD_SEQ);
    assertNotNull("Sequence " + CARD_SEQ + " should not be null.", s);
    Card c1 = new Card();
    c1.setName("card 1");
    Card c2 = new Card();
    c2.setName("card 2");
   
    Collection c = new ArrayList();
    c.add(c1);
    c.add(c2);
    //make persistent
    pm.currentTransaction().begin();
    pm.makePersistentAll(c);
    pm.currentTransaction().commit();
    assertTrue(c1.getId() < c2.getId());
        pm.close();
  }
View Full Code Here

Examples of org.ozsoft.texasholdem.Card

    /**
     * Tests the implementation of the Chen formula calculator.
     */
    @Test
    public void chenFormula() {
        Card card1 = null;
        Card card2 = null;
       
        card1 = new Card(Card.ACE, Card.SPADES);
        card2 = new Card(Card.ACE, Card.HEARTS);
        Assert.assertEquals(20.0, PokerUtils.getChenScore(new Card[] {card1, card2}), DELTA);

        card1 = new Card(Card.ACE, Card.SPADES);
        card2 = new Card(Card.KING, Card.SPADES);
        Assert.assertEquals(12.0, PokerUtils.getChenScore(new Card[] {card1, card2}), DELTA);

        card1 = new Card(Card.KING, Card.SPADES);
        card2 = new Card(Card.KING, Card.HEARTS);
        Assert.assertEquals(16.0, PokerUtils.getChenScore(new Card[] {card1, card2}), DELTA);

        card1 = new Card(Card.TEN, Card.CLUBS);
        card2 = new Card(Card.TEN, Card.DIAMONDS);
        Assert.assertEquals(10.0, PokerUtils.getChenScore(new Card[] {card1, card2}), DELTA);

        card1 = new Card(Card.FIVE, Card.CLUBS);
        card2 = new Card(Card.SEVEN, Card.CLUBS);
        Assert.assertEquals(6.0, PokerUtils.getChenScore(new Card[] {card1, card2}), DELTA);

        card1 = new Card(Card.DEUCE, Card.CLUBS);
        card2 = new Card(Card.SEVEN, Card.DIAMONDS);
        Assert.assertEquals(0.0, PokerUtils.getChenScore(new Card[] {card1, card2}), DELTA);
    }
View Full Code Here

Examples of org.trello4j.model.Card

    Map<String, String> map = new HashMap<String, String>();
        map.put("desc", description);

        // WHEN
    Card card = new TrelloImpl(API_KEY, API_TOKEN).createCard(listId, name, map);

        // THEN
    assertNotNull(card);
    assertThat(card.getName(), equalTo(name));
    assertThat(card.getDesc(), equalTo(description));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.