Package general

Examples of general.Card


    Card[] cards = new Card[52];
    int pos = 0;
    for (Title t : Title.values())
    {
      for (Symbol symbol : Symbol.values()){
        cards[pos] = new Card(t, symbol);
        pos++;
      }
    }
    return cards;
  }
View Full Code Here


    return cards;
  }

  public static void shuffle(Card[] cards){
    int top = cards.length;
    Card temp;
    while (top > 0)
    {
      int num = rand.nextInt(top);
      temp = cards[num];
      top--;
View Full Code Here

TOP

Related Classes of general.Card

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.