Claw
1.7.3
|
Select an action using a given method (min_max, alpha_beta). More...
#include <game_ai.hpp>
Public Types | |
typedef Method::state | state |
The type of a state in the game. | |
typedef Method::action | action |
The type of the actions that change the state of the game. | |
typedef Method::score | score |
The type used to represent the score. |
Public Member Functions | |
void | operator() (int depth, const state ¤t_state, action &new_action, bool computer_turn) const |
Select an action using the given method. |
Select an action using a given method (min_max, alpha_beta).
Template parameters:
Definition at line 199 of file game_ai.hpp.
void claw::ai::game::select_action< Method >::operator() | ( | int | depth, |
const state & | current_state, | ||
action & | new_action, | ||
bool | computer_turn | ||
) | const |
Select an action using the given method.
depth | Maximum depth of the search tree. |
current_state | The state of the game. |
new_action | (in/out) Best known action. |
computer_turn | Tell if the action is done by the computer. |
Definition at line 328 of file game_ai.tpp.