// Programmer: INSERT YOUR NAME // COMP 14 // Assignment: Program 3 // INSERT YOUR PLEDGE HERE /******************************************************************** * Hand * * Member Variables: * INSERT DESCRIPTION OF MEMBER VARIABLES * Private Methods: * INSERT DESCRIPTION OF PRIVATE METHODS (IF ANY) * Public Methods: * INSERT DESCRIPTION OF PUBLIC METHODS (IF ANY) *******************************************************************/ public class Hand { public static final int HANDSIZE = 5; public static final int HIGH_CARD = 0; public static final int ONE_PAIR = 1; public static final int TWO_PAIRS = 2; public static final int THREE_OF_A_KIND = 3; public static final int STRAIGHT = 4; public static final int FLUSH = 5; public static final int FULL_HOUSE = 6; public static final int FOUR_OF_A_KIND = 7; public static final int STRAIGHT_FLUSH = 8; // member variables // INSERT MEMBER VARIABLES HERE // Hand Constructor // INSERT DESCRIPTION OF CONSTRUCTOR HERE public Hand() { // instantiate a hand of cards // INSERT CODE HERE } // resets a hand and throws away all cards in the hand // INSERT DESCRIPTION OF METHOD HERE public void resetHand() { // INSERT CODE HERE } // accepts a card to the hand // INSERT DESCRIPTION OF METHOD HERE public void TakeCard(Card card) { // INSERT CODE HERE } // How many cards does the hand have? // INSERT DESCRIPTION OF METHOD HERE public int getNumCards() { // INSERT CODE HERE } // return the card number of a card in a hand at a specified position // INSERT DESCRIPTION OF METHOD HERE public int getCard(int cardPosition) { // INSERT CODE HERE } // is this hand sorted? // INSERT DESCRIPTION OF METHOD HERE public boolean isSorted() { // INSERT CODE HERE } // sort the cards in this hand from low to high // INSERT DESCRIPTION OF METHOD HERE public void SortHand() { // INSERT CODE HERE } // returns a String that represents the hand // INSERT DESCRIPTION OF METHOD HERE public String toString() { // INSERT CODE HERE } }