-footer

Uses of Class
garrettsmith.playingcards.CardList

Packages that use CardList
garrettsmith.blackjack Provides classes for playing a game of blackjack. 
garrettsmith.blackjack.refimpl Provides for using the blackjack framework via the console and serves as an example implementation of EventHandler
garrettsmith.playingcards Provides basic classes for simulating a game that uses playing cards. 
 

Uses of CardList in garrettsmith.blackjack
 

Methods in garrettsmith.blackjack that return CardList
 CardList Hand.getCards()
          Returns the player's cards that represent this hand.
 

Methods in garrettsmith.blackjack with parameters of type CardList
static int Blackjack.calculateBestValue(CardList cards)
          Calculates the highest possible value for a list of cards without busting, if possible.
static int Blackjack.calculateValue(CardList cards)
          Calculates the value of a list of cards according to the rules of Blackjack; assumes all aces are worth 1.
 Hand Move.execute(Hand hand, EventHandler handler, CardList dealerCards)
          Executes the move; should only be invoked internally by the framework.
 void EventHandler.handFinished(Hand hand, double gain, Result result, CardList dealerCards)
          Method that is invoked when a hand is done being played.
static boolean Blackjack.isBlackjack(CardList cards)
          Returns whether the list of cards passed in represents a blackjack.
static boolean Blackjack.isSoft(CardList cards)
          Returns whether the list of cards is a soft hand.
 

Uses of CardList in garrettsmith.blackjack.refimpl
 

Methods in garrettsmith.blackjack.refimpl with parameters of type CardList
 void TextPlayer.handFinished(Hand hand, double gainOrLoss, Result result, CardList dealerCards)
           
 

Uses of CardList in garrettsmith.playingcards
 

Constructors in garrettsmith.playingcards with parameters of type CardList
CardContainer(CardList cards)
          Creates an unshuffled container with its cards equal to the contents of cards.
CardList(CardList cards)
          Creates a card list which contains the contents of cards.
 


-footer

Copyright 2001-5 Garrett Smith. Use is subject to license terms.