/**
 * Simple game just to pick 2 cards , print and tell the total
 * @author Pepper
 * @version 1/26/2015
 */
public class SimpleGame
{
     /**
      * The main method, for command-line invocation.
      * pick 2 cards , print and tell the total
      */
     public static void main (String[] args)
     {
           System.out.println ("Starting Game");
           Card first = new Card (1,"SPADES"); // create card ace of spades
           Card second = new Card (3,"HEARTS"); // create card 3 of hearts
           System.out.println("first card is " + first + " and the second card is " + second );
           int sum = first.getcardScore() + second.getcardScore();
           // now try using an array of cards
           Card[] cards = new Card[5];
           for (int c = 0; c < 5; c++) // fill 5 cards,  3 - 8 of SPADES
           { cards[c] = new Card( c+3, "SPADES");
           }
           int totCardScore = 0;
           for (int c = 0; c < 5; c++) // print and add 5 cards
           {   totCardScore = cards[c].getcardScore() + totCardScore; 
               System.out.println("Card: " + cards[c]);
           }
               System.out.println("the total score is " + totCardScore);           
     }
}
