class AccusationStrategy extends Strategy
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
strategy |
| Constructor and Description |
|---|
AccusationStrategy()
The default constructor.
|
AccusationStrategy(java.lang.String strat)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private CardSet |
defaultStrat(Player agent)
Default Strategy: if an agent knows all cards in the envelope, they will make an accusation
|
static java.lang.String[] |
getOptions()
Get the different types of AccusationStrategy
|
java.lang.String |
getStrategy()
Get the strategy played
|
private CardSet |
riskStrat(Player agent)
A risky strategy: if an agent holds only two cards as possible,
and knows all the rest, make a guess so someone can not win before you
|
CardSet |
strategy(Player agent)
the accusation strategy to be played
|
public AccusationStrategy()
public AccusationStrategy(java.lang.String strat)
strat - the strategy to be playedpublic CardSet strategy(Player agent)
agent - the agent played forprivate CardSet defaultStrat(Player agent)
agent - the current agentprivate CardSet riskStrat(Player agent)
agent - the current agentpublic java.lang.String getStrategy()
public static java.lang.String[] getOptions()