org.jscience.computing.game.cards
Class BJCheater

java.lang.Object
  extended by org.jscience.computing.game.TemplatePlayer
      extended by org.jscience.computing.game.cards.BJPlayer
          extended by org.jscience.computing.game.cards.BJCheater
All Implemented Interfaces:
java.io.Serializable, Player

public class BJCheater
extends BJPlayer

a BlackJack Player object that cheats during evaluation by looking at the next card that's on the deck

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jscience.computing.game.TemplatePlayer
TemplatePlayer.MoveEvaluater, TemplatePlayer.Synchronizer
 
Field Summary
 
Fields inherited from class org.jscience.computing.game.TemplatePlayer
levelOverwrite, monitors, orderMoves, playerName, SEARCH_ALPHABETA, SEARCH_MINMAX, searchOption
 
Constructor Summary
BJCheater()
          Creates a new BJCheater object.
 
Method Summary
 double heuristic(GamePlay game, GameMove move, int[] role)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.computing.game.cards.BJPlayer
canPlayGame
 
Methods inherited from class org.jscience.computing.game.TemplatePlayer
disableTracking, enableTracking, evaluate, evaluate, getLevelOverwrite, getMonitors, getOrderMoves, getPlayerName, getSearchOption, numberOfPositionsSearched, numberOfRequests, performanceRatio, pruneMove, selectMove, setLevelOverwrite, setOrderMoves, setPlayerName, setSearchOption, setTracking, statsAsString, toString, totalTimeTaken, trackingEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BJCheater

public BJCheater()
Creates a new BJCheater object.

Method Detail

heuristic

public double heuristic(GamePlay game,
                        GameMove move,
                        int[] role)
DOCUMENT ME!

Specified by:
heuristic in interface Player
Overrides:
heuristic in class BJPlayer
Parameters:
game - DOCUMENT ME!
move - DOCUMENT ME!
role - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.Error - DOCUMENT ME!
See Also:
TemplatePlayer