org.vizzini.game.boardgame.chess
Class SearchChessAgent
java.lang.Object
org.vizzini.game.AbstractAgent
org.vizzini.game.AbstractComputerAgent
org.vizzini.game.search.SearchAgent
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
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 interface org.vizzini.game.IAgent |
addConcedeListener, addPropertyChangeListener, addScoreListener, addToScore, concede, configure, getName, getScore, getTeam, getTokenCollection, incrementScore, removeConcedeListener, removePropertyChangeListener, removeScoreListener, reset, setName, setScore, setTeam |
SearchChessAgent
public SearchChessAgent()
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 |