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

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

public class Rules
extends java.lang.Object

An object which provides information about a set of rules for Hearts.


Method Summary
 CardArray getDeck()
          Returns the deck under these rules.
 int getKittySize()
          Returns the size of the "kitty" under these rules.
 CardArray getTakeAllCards()
          Returns the set of cards required for a take-all under these rules.
 int getTakeAllScore()
          Returns the number of points a take-all is worth under these rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDeck

public CardArray getDeck()
Returns the deck under these rules.
Returns:
A CardArray containing the cards in the deck under these Rules.

getTakeAllCards

public CardArray getTakeAllCards()
Returns the set of cards required for a take-all under these rules.
Returns:
A CardArray containing all of the cards which need to be taken in order to execute a take-all under these Rules.

getTakeAllScore

public int getTakeAllScore()
Returns the number of points a take-all is worth under these rules.
Returns:
The number of points which are earned for executing a take-all under these Rules. Will not be negative.

getKittySize

public int getKittySize()
Returns the size of the "kitty" under these rules.
Returns:
The number of cards that would be included in a Kitty under these rules, or 0 if there would be no kitty.