class SuspicionStrategy extends Strategy
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
strategy |
| Constructor and Description |
|---|
SuspicionStrategy()
The default constructor.
|
SuspicionStrategy(java.lang.String strat)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected CardSet |
complexStrat(Player agent)
A complex strategy for suspicion: ask the cards that give the opponents the least information
|
protected CardSet |
defaultStrat(Player agent)
The default strategy: suspect cards you do not yet know
|
static java.lang.String[] |
getOptions()
Get the different types of SuspicionStrategy
|
java.lang.String |
getStrategy()
Get the strategy played
|
CardSet |
strategy(Player agent)
The suspicion strategy to be played
|
public SuspicionStrategy()
public SuspicionStrategy(java.lang.String strat)
strat - the strategy to be playedpublic CardSet strategy(Player agent)
agent - the agent played forprotected CardSet defaultStrat(Player agent)
agent - the playing agentprotected CardSet complexStrat(Player agent)
agent - the playing agentpublic java.lang.String getStrategy()
public static java.lang.String[] getOptions()