Holger's
Java API

Uses of Interface
com.antelmann.game.Player

Packages that use Player
com.antelmann.game This package contains packages to support game implementations. 
com.antelmann.game.awari This package contains an implementation of the game Awari. 
com.antelmann.game.card This package contains classes to serve card games and also includes a full implementation of BlackJack. 
com.antelmann.game.checkers This package contains an implementation of the game checkers. 
com.antelmann.game.chess This package contains an implementation of the game chess. 
com.antelmann.game.fourwins This package contains a reference implementation of the game Four-Connects or 4-wins or 4-in-a-row. 
com.antelmann.game.gomoku This package contains an implementation of the game Go-moku. 
com.antelmann.game.muehle This package contains a reference implementation of the game "Mühle" (as it is known in German) or "Nine Men's Morris". 
com.antelmann.game.puzzle This package contains single-user game implementations representing puzzles. 
com.antelmann.game.reversi This package contains an implementation of the game Reversi or Othello. 
com.antelmann.game.wolfsheep This package contains an implementation of the game Wolf&Sheep. 
 

Uses of Player in com.antelmann.game
 

Classes in com.antelmann.game that implement Player
 class BookPlayer
          BookPlayer is a Player wrapper that can significantly improve normal Player performance by predefining move selections.
 class RandomPlayer
          RandomPlayer provides a reference implementation of the Player interface.
 class SocketPlayer
          SocketPlayer is a wrapper around a standard Player object.
 class TemplatePlayer
          The TemplatePlayer provides a useful skeleton implementation for the Player interface.
 

Methods in com.antelmann.game that return Player
 Player GameDriver.changePlayer(int gameRole, Player player)
           
 Player AutoPlay.changePlayer(int gameRole, Player player)
          changePlayer() enables to change the Player for a gameRole while the game is in progress; the old Player object is returned
 Player SocketPlayerServer.getPlayer()
           
 Player CannotPlayGameException.getPlayer()
           
 Player BookPlayer.getPlayer()
           
 Player GameDriver.getPlayer(int gameRole)
           
 Player AutoPlay.getPlayer(int gameRole)
          getPlayer(gameRole) returns the corresponding Player to the given gameRole - an integer between 0 and (getNumberOfPlayers()-1).
 Player[] GameDriver.getPlayers()
           
 Player[] AutoPlay.getPlayers()
          returns all Player objects that play the game; there may be duplicate Player objects present
 

Methods in com.antelmann.game with parameters of type Player
static double GameUtilities.alphaBetaSearch(GamePlay game, GameMove move, Player player, int[] role, int level, boolean orderMoves)
          This function implements Alpha-Beta Search algorithm (intelligently pruned MinMax algorithm) and returns the evaluation given by the player's heuristic functions at the leaves; limited only by deepening level.
static double GameUtilities.alphaBetaSearch(GamePlay game, GameMove move, Player player, int[] role, int level, double alpha, double beta, boolean orderMoves)
          This function is usually just called by the other corresponding alphaBetaSearch function.
static double GameUtilities.alphaBetaSearch(GamePlay game, GameMove move, Player player, int[] role, int level, double alpha, double beta, long time, boolean orderMoves)
          This function is usually just called by the other timed alphaBetaSearch function.
static double GameUtilities.alphaBetaSearch(GamePlay game, GameMove move, Player player, int[] role, int level, double alpha, double beta, Monitor monitor, boolean orderMoves)
          This function is usually just called by the other corresponding monitored alphaBetaSearch function.
static double GameUtilities.alphaBetaSearch(GamePlay game, GameMove move, Player player, int[] role, int level, long time, boolean orderMoves)
          This function implements Alpha-Beta Search algorithm (intelligently pruned MinMax algorithm) and returns the evaluation given by the player's heuristic functions at the leaves - timed version (search cut off at given time).
static double GameUtilities.alphaBetaSearch(GamePlay game, GameMove move, Player player, int[] role, int level, Monitor monitor, boolean orderMoves)
          This function implements Alpha-Beta Search algorithm and returns the evaluation given by the player's heuristic functions at the leaves (intelligently pruned MinMax algorithm) - monitor version (search is cut off when monitor disabled).
static GamePlay GameUtilities.bestFirstSearch(GamePlay game, int[] roles, int maxNumberOfNodes, Player player, Monitor monitor)
          A 'best-first-search' algorithm that looks for a path to win the game according to the given roles.
 Player GameDriver.changePlayer(int gameRole, Player player)
           
 Player AutoPlay.changePlayer(int gameRole, Player player)
          changePlayer() enables to change the Player for a gameRole while the game is in progress; the old Player object is returned
 void BookPlayer.changePlayer(Player player)
           
static GamePlay GameUtilities.depthFirstSearch(GamePlay game, int[] roles, int numberOfMoves, Player player, Monitor monitor)
          This depthFirstSearch() variant sorts the moves according to their heuristics provided by the given player before performing its otherwise 'depth-first-search' algorithm.
static GameMove[] GameUtilities.getLegalMovesSorted(GamePlay game, Player player, int[] roles, boolean descending)
          getLegalMovesSorted() sorts the legal moves of the given game descending or ascending by their heuristic calculated by the given player based on the roles.
 int[] GameDriver.getRoles(Player player)
           
 int[] AutoPlay.getRoles(Player player)
          Players could play multiple roles in a game, so getRoles returns an array of Integers.
static double GameUtilities.minMaxSearch(GamePlay game, GameMove move, Player player, int[] role, int level)
          implements MinMax Search algorithm and returns the evaluation given by the player's heuristic functions at the leaves; limited only by a deepening level
static double GameUtilities.minMaxSearch(GamePlay game, GameMove move, Player player, int[] role, int level, long time)
          implements MinMax Search algorithm and returns the evaluation given by the player's heuristic functions at the leaves; will only run as deep as given by the level and only as long as given time is less than System.currentTimeMillis().
static double GameUtilities.minMaxSearch(GamePlay game, GameMove move, Player player, int[] role, int level, Monitor monitor)
          implements MinMax Search algorithm and returns the evaluation given by the player's heuristic functions at the leaves; tracking is enabled tracking through a Monitor object.
 

Constructors in com.antelmann.game with parameters of type Player
BookPlayer(Player player)
           
BookPlayer(String name, Player player)
          allows the BookPlayer to have a name different from the embedded player
CannotPlayGameException(Player player, GamePlay game, String customText)
           
GameDriver(GamePlay game, Player[] players, int level)
           
JDefaultGame(GamePlay game, Player[] player, int level, ExtensionFileFilter filter)
           
SocketPlayerServer(int port, Player player, Monitor monitor, Logger logger)
          The constructor binds itself to the given port and keeps a reference to the actual Player object.
 

Uses of Player in com.antelmann.game.awari
 

Classes in com.antelmann.game.awari that implement Player
 class AwariPlayer
          AwariPlayer adds AI to the AwariGame
 

Uses of Player in com.antelmann.game.card
 

Classes in com.antelmann.game.card that implement Player
 class BJCheater
          a BlackJack Player object that cheats during evaluation by looking at the next card that's on the deck
 class BJPlayer
          adds AI to the game BlackJack
 

Constructors in com.antelmann.game.card with parameters of type Player
JBlackJack(BlackJack game, Player[] player, int level)
           
 

Uses of Player in com.antelmann.game.checkers
 

Classes in com.antelmann.game.checkers that implement Player
 class CheckersPlayer
          AI for the CheckersGame
 

Constructors in com.antelmann.game.checkers with parameters of type Player
JCheckers(CheckersGame game, Player player1, Player player2, int level)
           
 

Uses of Player in com.antelmann.game.chess
 

Classes in com.antelmann.game.chess that implement Player
 class ChessPlayer
          provides AI for a ChessGame - unfortunately, it's still a dumb player
 

Constructors in com.antelmann.game.chess with parameters of type Player
JChess(ChessGame game, Player player1, Player player2, int level)
           
 

Uses of Player in com.antelmann.game.fourwins
 

Classes in com.antelmann.game.fourwins that implement Player
 class FourWinsPlayer
          adds AI to the FourWinsGame
 

Constructors in com.antelmann.game.fourwins with parameters of type Player
JFourWins(FourWinsGame game, Player player1, Player player2, int level)
           
 

Uses of Player in com.antelmann.game.gomoku
 

Classes in com.antelmann.game.gomoku that implement Player
 class GomokuPlayer
          adds AI to the GomokuGame
 

Constructors in com.antelmann.game.gomoku with parameters of type Player
JGomoku(GomokuGame game, Player player1, Player player2, int level)
           
 

Uses of Player in com.antelmann.game.muehle
 

Classes in com.antelmann.game.muehle that implement Player
 class MuehlePlayer
          adds AI to the MuehleGame and provides a suitable heuristic to evaluate the game
 

Constructors in com.antelmann.game.muehle with parameters of type Player
JMuehle(MuehleGame game, Player player1, Player player2, int level)
           
 

Uses of Player in com.antelmann.game.puzzle
 

Classes in com.antelmann.game.puzzle that implement Player
 class TilePuzzlePlayer
          provides AI for a TilePuzzle game
 

Constructors in com.antelmann.game.puzzle with parameters of type Player
JSolitaire(Solitaire game, Player player1, int level)
           
JTilePuzzle(TilePuzzle game, Player player, int level)
           
 

Uses of Player in com.antelmann.game.reversi
 

Classes in com.antelmann.game.reversi that implement Player
 class ReversiPlayer
          adds AI to the ReversiGame
 

Constructors in com.antelmann.game.reversi with parameters of type Player
JReversi(ReversiGame game, Player player1, Player player2, int level)
           
 

Uses of Player in com.antelmann.game.wolfsheep
 

Classes in com.antelmann.game.wolfsheep that implement Player
 class WSPlayer
          WSPlayer adds AI to the WolfsheepGame; can play both, wolf and sheep.
 

Constructors in com.antelmann.game.wolfsheep with parameters of type Player
JWS(WolfsheepGame game, Player player1, Player player2, int level)
           
 



(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads