IPlayer
Game agent
An agent is responsible for evaluating and assigning a confidence against all available moves. This is achieved by returning an IMoveDistribution object.
public interface IPlayer
{
IMoveDistribution<TMove> GetMoves<TMove, TResult>(IGameState<TMove, TResult> state);
}
See Agents for documentation on the predefined implementations of IPlayer.
IMoveDistribution
An IMoveDistribution abstracts choosing a random move from a distribution, where the chance of picking a move is weighted by the agent's assigned confidence.
public interface IMoveDistribution<TMove>
{
TMove GetMove(UnitInterval ui);
bool IsEmpty();
}
Last updated
Was this helpful?