jskat.share
Class SkatRules

java.lang.Object
  extended by jskat.share.SkatRules

public final class SkatRules
extends java.lang.Object

Skat rules

Author:
Jan Schäfer

Field Summary
(package private) static org.apache.log4j.Logger log
           
 
Constructor Summary
SkatRules()
           
 
Method Summary
static int getResult(SkatGameData gameData)
          Computes the value for a game
static boolean isCardAllowed(Card card, CardVector hand, Card initialCard, int gameType, int currentTrump)
          Checks, whether the given card is allowed to be played, also considering the rest of the hand
static int isDurchmarsch(int[] tricks)
           
static int isJungfrau(int[] tricks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.apache.log4j.Logger log
Constructor Detail

SkatRules

public SkatRules()
Method Detail

getResult

public static final int getResult(SkatGameData gameData)
Computes the value for a game


isCardAllowed

public static boolean isCardAllowed(Card card,
                                    CardVector hand,
                                    Card initialCard,
                                    int gameType,
                                    int currentTrump)
Checks, whether the given card is allowed to be played, also considering the rest of the hand


isDurchmarsch

public static int isDurchmarsch(int[] tricks)

isJungfrau

public static int isJungfrau(int[] tricks)