// Card class definition
// Card.java
// Modifies D & D example to include the point value of the card
// Point values useful in some games for comparing hands
public class Card {
        private String face;
        private String suit;
        private int value;

        // constructor method
        public Card( String f, String s, int v ) {
                face = f;
                suit = s;
                value = v;
        }

        public String toString( ) {
                //return face + " of " + suit + " worth " + value + " points";
                return face + " of " + suit;
        }

        public String getFace( ) {
                return face;
        }

        public String getSuit( ) {
                return suit;
        }

        public int getValue( ) {
                return value;
        }       
}