Class DumbGameHand

java.lang.Object
  |
  +--Hand
        |
        +--DumbGameHand
All Implemented Interfaces:
java.lang.Comparable

public class DumbGameHand
extends Hand

Implementation of the rules for the dumb card game.


Constructor Summary
DumbGameHand()
          Creates a hand for the dumb card game.
 
Method Summary
 int evaluateHand()
          Evaluates a hand according to the rules of the dumb card game.
 
Methods inherited from class Hand
addCard, compareTo, containsCard, discardHand, findCard, getCard, getNumberOfCards, isEmpty, removeCard, removeCard, replaceCard, sort, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DumbGameHand

public DumbGameHand()
Creates a hand for the dumb card game.
Method Detail

evaluateHand

public int evaluateHand()
Evaluates a hand according to the rules of the dumb card game. Each card is worth its displayed pip value (ace = 1, two = 2, etc.) in points with face cards worth ten points. The value of a hand is equal to the summation of the points of all the cards held in the hand.
Overrides:
evaluateHand in class Hand
Following copied from class: Hand
Returns:
an integer corresponding to the rating of the hand.