22 #ifndef SGABSTRACTGAME_HPP
23 #define SGABSTRACTGAME_HPP
73 vector< vector<int> > _numActions):
84 vector< vector<int> > _numActions):
103 virtual double probability(
int state,
const vector<int> &actions,
int statep)
const = 0;
int numPlayers
The number of players, always 2.
Definition: sgabstractgame.hpp:44
vector< vector< int > > numActions
The numbers of actions in each state.
Definition: sgabstractgame.hpp:52
int numStates
The number of states.
Definition: sgabstractgame.hpp:48
double getDelta() const
Returns the discount factor.
Definition: sgabstractgame.hpp:146
SGAbstractGame(double _delta, int _numStates, vector< vector< int > > _numActions)
Constructor for the pure virtual class.
Definition: sgabstractgame.hpp:82
SGPoint payoffs(int state, int action) const
An overloaded version of payoffs that uses a linear action index.
Definition: sgabstractgame.hpp:126
A virtual class for constructing games.
Definition: sgabstractgame.hpp:41
virtual double probability(int state, const vector< int > &actions, int statep) const =0
Transition probabilities.
virtual bool constrained(int player) const
Returns true if the given player is incentive constrained.
Definition: sgabstractgame.hpp:120
double getNumStates() const
Returns the number of states.
Definition: sgabstractgame.hpp:148
A vector in .
Definition: sgpoint.hpp:35
double probability(int state, int action, int statep) const
Definition: sgabstractgame.hpp:133
vector< int > indexToActions(int index, int state) const
Converts a linear index to multiindex.
Definition: sgabstractgame.hpp:57
bool isEquilibriumAction(int state, int action) const
Definition: sgabstractgame.hpp:140
virtual bool isEquilibriumAction(int state, const vector< int > &actions) const
Definition: sgabstractgame.hpp:110
SGAbstractGame(int _numPlayers, double _delta, int _numStates, vector< vector< int > > _numActions)
Constructor for the pure virtual class.
Definition: sgabstractgame.hpp:70
double delta
The discount factor.
Definition: sgabstractgame.hpp:46
const vector< vector< int > > getNumActions() const
Returns the number of actions array.
Definition: sgabstractgame.hpp:150
int getNumPlayers() const
Returns the number of players.
Definition: sgabstractgame.hpp:144
virtual SGPoint payoffs(int state, const vector< int > &actions) const =0
The payoff function.