jskat.share
Class SkatRules
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
static org.apache.log4j.Logger log
SkatRules
public SkatRules()
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)