inonit.domain.game.card.hearts.ai
Class Kitty

java.lang.Object
  |
  +--inonit.domain.game.card.hearts.ai.Kitty

public class Kitty
extends java.lang.Object

A set of Cards left over after dealing in a Game where the Cards in the deck are not evenly divisible by the number of players. During a Hand, the first Intelligence to take a Trick including a point card (as defined by Rules.getValue != 0) receives the Cards in the Kitty, and they count in the Intelligence's score for that Hand. In some games, the Kitty is "blind" -- i.e., the Intelligence taking the Kitty may not examine it; in others, it is not blind. Whether or not the Kitty for a Game is blind is determined by the Rules.isKittyBlind method.


Method Summary
 CardArray getCards()
          Returns a copy of the CardArray containing the Cards in this Kitty, or null if this AbstractIntelligence is not allowed to see them.
 int getSize()
          Returns the number of Cards in this Kitty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSize

public int getSize()
Returns the number of Cards in this Kitty.
Returns:
the number of Cards in this Kitty.

getCards

public CardArray getCards()
Returns a copy of the CardArray containing the Cards in this Kitty, or null if this AbstractIntelligence is not allowed to see them. The AbstractIntelligence cannot see them if
Returns:
A CardArray containing the Cards in the Kitty, or null if this AbstractIntelligence cannot look at them. This CardArray can be safely manipulated without altering the original.