Claw 1.7.3
claw::ai::game::min_max< State > Class Template Reference

Find an action with the MinMax algorithm. More...

#include <game_ai.hpp>

Public Types

typedef State state
 The type of a state in the game.
 
typedef State::action action
 The type of the actions that change the state of the game.
 
typedef State::score score
 The type used to represent the score.
 

Public Member Functions

score operator() (int depth, const state &current_state, bool computer_turn) const
 

Detailed Description

template<typename State>
class claw::ai::game::min_max< State >

Find an action with the MinMax algorithm.

Template parameters:

  • State: the type of a state of the game. Must inherit from game_state.
Author
Julien Jorge

Definition at line 139 of file game_ai.hpp.

Member Typedef Documentation

◆ action

template<typename State >
State::action claw::ai::game::min_max< State >::action

The type of the actions that change the state of the game.

Definition at line 146 of file game_ai.hpp.

◆ score

template<typename State >
State::score claw::ai::game::min_max< State >::score

The type used to represent the score.

Definition at line 149 of file game_ai.hpp.

◆ state

template<typename State >
State claw::ai::game::min_max< State >::state

The type of a state in the game.

Definition at line 143 of file game_ai.hpp.


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