com.antelmann.game.card
Class BJCheater
java.lang.Object
com.antelmann.game.TemplatePlayer
com.antelmann.game.card.BJPlayer
com.antelmann.game.card.BJCheater
- All Implemented Interfaces:
- Player, Serializable
public class BJCheater
- extends BJPlayer
a BlackJack Player object that cheats during evaluation
by looking at the next card that's on the deck
- Author:
- Holger Antelmann
- See Also:
- Serialized Form
|
Method Summary |
double |
heuristic(GamePlay game,
GameMove move,
int[] role)
This function - often used as a callback function - evaluates the given move
in the context of the given game; it is expected to return quickly. |
| Methods inherited from class com.antelmann.game.TemplatePlayer |
disableTracking, enableTracking, evaluate, evaluate, getlevelOverride, getMonitors, getOrderMoves, getPlayerName, getSearchOption, numberOfPositionsSearched, numberOfRequests, performanceRatio, pruneMove, selectMove, setlevelOverride, setOrderMoves, setPlayerName, setSearchOption, setTracking, statsAsString, toString, totalTimeTaken, trackingEnabled |
BJCheater
public BJCheater()
heuristic
public double heuristic(GamePlay game,
GameMove move,
int[] role)
- Description copied from interface:
Player
- This function - often used as a callback function - evaluates the given move
in the context of the given game; it is expected to return quickly.
This function is really the only function that contains proprietory knowlege about
the game (as all other functions could be implemented generically without domain
knowlege; this is why the class TemplatePlayer provides already most methods
except this function for easy implementations of this interface);
heuristic() asks for a heuristic of the move given the game status - treating the
status as a leaf in a potential search tree (whereas evaluate() may perform a game tree
search before returning a value).
- Specified by:
heuristic in interface Player- Overrides:
heuristic in class BJPlayer
- See Also:
TemplatePlayer
(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads