@FunctionalInterface public interface Agent
We make the following (general) assumptions about agents: 1) they store no internal state between rounds 2) given a game state, they are able to return a move 3) the game state will be tracked for them on their behalf.
Modifier and Type | Method and Description |
---|---|
Action |
doMove(int agentID,
GameState state)
Standardised interface for game playing agents.
|
default void |
receiveID(int agentID)
optional hook for when the agent gets their ID.
|
Action doMove(int agentID, GameState state)
The agent gets a copy of the game state and it's agent ID and should return a move.
agentID
- the ID of this agentstate
- the current state of the gamedefault void receiveID(int agentID)
This indicates that the game has started.
agentID
- this agent's ID.Copyright © 2017 FOSS Galaxy. All rights reserved.