jskat.player.AIPlayerMJL
Class SkatProcessor

java.lang.Object
  extended by jskat.player.AIPlayerMJL.SkatProcessor

public class SkatProcessor
extends java.lang.Object

Author:
Markus J. Luzius

Constructor Summary
SkatProcessor()
           
 
Method Summary
static boolean lookAtSkat(CardVector cards)
          Decides, whether the AI player should look at the skat or rather play hand
static int processSkat(CardVector cards, CardVector skat)
          Processes the skat after the player has won the bidding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkatProcessor

public SkatProcessor()
Method Detail

processSkat

public static int processSkat(CardVector cards,
                              CardVector skat)
Processes the skat after the player has won the bidding.

Parameters:
cards - the player's hand
skat - the skat
Returns:
suit to be played (0-3), grand (4), null (-1)

lookAtSkat

public static boolean lookAtSkat(CardVector cards)
Decides, whether the AI player should look at the skat or rather play hand

Parameters:
cards - the player's hand
Returns:
true, if the player should look at the skat