Class BlackjackHand

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

public class BlackjackHand
extends Hand


Constructor Summary
BlackjackHand()
           
 
Method Summary
 int evaluateHand()
          Evaluation of a (simple) blackjack hand.
 
Methods inherited from class Hand
addCard, compareTo, containsCard, discardHand, findCard, getCard, getNumberOfCards, isEmpty, removeCard, removeCard, sort
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlackjackHand

public BlackjackHand()
Method Detail

evaluateHand

public int evaluateHand()
Evaluation of a (simple) blackjack hand. For demonstration purposes, assumes that the hand consists of only two cards, so we're not implementing the complete logic for this...
Overrides:
evaluateHand in class Hand
Returns:
the value of the hand according to the rules of Blackjack.