A state of a game. More...
|The type used for evaluationg the players' scores. |
|A type representing an action of a player. |
|virtual score||evaluate () const =0|
|Evaluate this state of the game. |
|virtual void||next_actions (std::list< action > &l) const =0|
|Get all actions that can be done from this state. |
|virtual game_state *||do_action (const action &a) const =0|
|Get a new state obtained when applying an action. |
|virtual bool||final () const =0|
|Tell if the game is over. |
|static score||min_score ()|
|Get the minimal score a state can get. |
|static score||max_score ()|
|Get the maximal score a state can get. |
|score||fit (score score_val) const|
|Truncate a score to fit in the range (min_score(), max_score()). |
|static const score||s_min_score|
|Minimal score that can be given to a state. |
|static const score||s_max_score|
|Maximal score that can be given to a state. |
A state of a game.
|Action,:||a type representing an action of a player.|
|Numeric,:||the type used for evaluationg the players' scores.|
Get a new state obtained when applying an action.
|a||The action to apply.|
Get all actions that can be done from this state.
|l||(out) The actions.|