Claw 1.7.0
Public Types | Public Member Functions
claw::ai::game::select_action< Method > Class Template Reference

Select an action using a given method (min_max, alpha_beta). More...

#include <game_ai.hpp>

List of all members.

Public Types

typedef Method::state state
typedef Method::action action
typedef Method::score score

Public Member Functions

void operator() (int depth, const state &current_state, action &new_action, bool computer_turn) const
 Select an action using the given method.

Detailed Description

template<typename Method>
class claw::ai::game::select_action< Method >

Select an action using a given method (min_max, alpha_beta).

Template parameters:

Author:
Julien Jorge, Sébastien Angibaud

Definition at line 188 of file game_ai.hpp.


Member Function Documentation

template<typename Method >
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.

Parameters:
depthMaximum depth of the search tree.
current_stateThe state of the game.
new_action(in/out) Best known action.
computer_turnTell if the action is done by the computer.

Definition at line 328 of file game_ai.tpp.


The documentation for this class was generated from the following files: