strategy
public Card strategy(Player agent,
CardSet query,
CardSet hand,
int other)
If there are multiple responses possible, the user is asked whether he/she wants to play this strategy manually. If so, a GUI pops up in which the user can specify a response. Otherwise, the response is obtained by calling the strategy function of the ResponseStrategy class.
- Overrides:
strategy in class ResponseStrategy
- Parameters:
agent - The agent that plays this strategy
query - the query made
hand - the hand of the current agent
other - the agent querying
- Returns:
- A card that represents the response if an the agent can respond. Null if this is not possible.