public interface GameProtocol extends Protocol
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getUtility(Agent agent)
Returns the utility of the given agent for
the final situation.
|
Agent |
getWinner()
If the game has a winner, this methods returns it.
|
boolean |
hasWinner()
Returns "true" if the game has finished and a winner
is determined, otherwise it returns "false"
|
addProtocolListener, removeProtocolListener
boolean hasWinner()
Agent getWinner()
java.lang.Double getUtility(Agent agent)
agent
- some agent.