org.vizzini.game.boardgame.chess
Class SimpleChessAgent

java.lang.Object
  extended by org.vizzini.game.AbstractAgent
      extended by org.vizzini.game.AbstractComputerAgent
          extended by org.vizzini.game.boardgame.chess.AbstractChessComputerAgent
              extended by org.vizzini.game.boardgame.chess.SimpleChessAgent
All Implemented Interfaces:
Serializable, IChessAgent, IAgent, IComputerAgent

public class SimpleChessAgent
extends AbstractChessComputerAgent

Provides a computer agent for 3D chess. This agent simply selects the first legal action.

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
SimpleChessAgent()
           
 
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.
protected  void releaseActions(List actions)
          Release the actions in the given list.
 
Methods inherited from class org.vizzini.game.boardgame.chess.AbstractChessComputerAgent
isPawnPrompt, isWhite, setPawnPrompt
 
Methods inherited from class org.vizzini.game.AbstractComputerAgent
addBusyListener, configure, 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
 

Constructor Detail

SimpleChessAgent

public SimpleChessAgent()
Method Detail

getAction

public IAction getAction(IEnvironment environment,
                         IAdjudicator adjudicator)
Return the action determined through consideration of the given environment using the given adjudicator.

Parameters:
environment - The current environment.
adjudicator - Adjudicator for determining legal actions.
Since:
v0.3

getPawnPromotionType

public Class getPawnPromotionType()
Return the pawn promotion type.

Since:
v0.3

releaseActions

protected void releaseActions(List actions)
Release the actions in the given list.

Parameters:
actions - Actions list.
Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02