org.vizzini.game.boardgame.chess
Class SearchChessAgent

java.lang.Object
  extended by org.vizzini.game.AbstractAgent
      extended by org.vizzini.game.AbstractComputerAgent
          extended by org.vizzini.game.search.SearchAgent
              extended by org.vizzini.game.boardgame.chess.SearchChessAgent
All Implemented Interfaces:
Serializable, IChessAgent, IAgent, IComputerAgent, ISearchAgent

public class SearchChessAgent
extends SearchAgent
implements IChessAgent

Provides a computer agent for 3D chess.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.vizzini.game.IAgent
NAME_PROPERTY, TEAM_PROPERTY
 
Constructor Summary
SearchChessAgent()
           
 
Method Summary
 IAction getAction(IEnvironment environment, IAdjudicator adjudicator)
          Return the action determined through consideration of the given environment using the given adjudicator.
 Class getPawnPromotionType()
          Return the pawn promotion type.
 boolean isActionHistoryUsed()
           
 boolean isPawnPrompt()
          Return true if this agent should prompt for the pawn promotion type.
 boolean isWhite()
          Return true if this agent's team is white.
 void setActionHistoryUsed(boolean isActionHistoryUsed)
           
 void setPawnPrompt(boolean isPawnPrompt)
          Set the flag indicating whether to prompt for the pawn promotion type.
 
Methods inherited from class org.vizzini.game.search.SearchAgent
configure, getDepth, getNodesVisitedCount, getSearch, setDepth, setSearch
 
Methods inherited from class org.vizzini.game.AbstractComputerAgent
addBusyListener, evaluate, getActionGenerator, getBusyManager, getEvaluator, isBusy, removeBusyListener, setActionGenerator, setBusy, setEvaluator
 
Methods inherited from class org.vizzini.game.AbstractAgent
addConcedeListener, addPropertyChangeListener, addScoreListener, addToScore, concede, equals, getConcedeManager, getIndex, getName, getProperties, getPropertyChangeManager, getScore, getScoreManager, getTeam, getTokenCollection, getTokenCollectionClass, hashCode, incrementScore, removeConcedeListener, removePropertyChangeListener, removeScoreListener, reset, setName, setScore, setTeam, setTokenCollectionClass, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.vizzini.game.IAgent
addConcedeListener, addPropertyChangeListener, addScoreListener, addToScore, concede, configure, getName, getScore, getTeam, getTokenCollection, incrementScore, removeConcedeListener, removePropertyChangeListener, removeScoreListener, reset, setName, setScore, setTeam
 
Methods inherited from interface org.vizzini.game.IComputerAgent
addBusyListener, evaluate, getActionGenerator, getEvaluator, isBusy, removeBusyListener
 

Constructor Detail

SearchChessAgent

public SearchChessAgent()
Method Detail

getAction

public IAction getAction(IEnvironment environment,
                         IAdjudicator adjudicator)
Return the action determined through consideration of the given environment using the given adjudicator. This agent examines each legal position, and returns the highest evaluated action.

Specified by:
getAction in interface IAgent
Overrides:
getAction in class SearchAgent
Parameters:
environment - The current environment.
adjudicator - Adjudicator for determining legal actions.
Since:
v0.3

getPawnPromotionType

public Class getPawnPromotionType()
Return the pawn promotion type.

Specified by:
getPawnPromotionType in interface IChessAgent
Since:
v0.3

isActionHistoryUsed

public boolean isActionHistoryUsed()
Returns:
Return isActionHistoryUsed.
Since:
v0.3

isPawnPrompt

public boolean isPawnPrompt()
Return true if this agent should prompt for the pawn promotion type.

Specified by:
isPawnPrompt in interface IChessAgent
Since:
v0.3

isWhite

public boolean isWhite()
Return true if this agent's team is white.

Specified by:
isWhite in interface IChessAgent
Since:
v0.3

setActionHistoryUsed

public void setActionHistoryUsed(boolean isActionHistoryUsed)
Parameters:
isActionHistoryUsed - The isActionHistoryUsed to set.
Since:
v0.3

setPawnPrompt

public void setPawnPrompt(boolean isPawnPrompt)
Set the flag indicating whether to prompt for the pawn promotion type.

Specified by:
setPawnPrompt in interface IChessAgent
Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02