My Project
Public Types | Static Public Member Functions | List of all members
osl::eval::ml::King25EmptySquareNoEffect Struct Reference

#include <kingTable.h>

Inheritance diagram for osl::eval::ml::King25EmptySquareNoEffect:
osl::eval::ml::King25EmptySquareNoEffectEnding osl::eval::ml::King25EmptySquareNoEffectOpening

Public Types

enum  { DIM = 3 * 5 }
 

Static Public Member Functions

template<Player defense>
static int evalOne (const NumEffectState &state, const CArray< int, 15 > &table)
 
template<Player defense>
static std::pair< int, int > evalOne (const NumEffectState &state, const CArray< int, 15 > &opening, const CArray< int, 15 > &ending)
 
static std::pair< CArray< int, 2 >, CArray< int, 2 > > eval (const NumEffectState &state, const CArray< int, 15 > &opening, const CArray< int, 15 > &ending)
 
static std::pair< CArray< int, 2 >, CArray< int, 2 > > evalWithUpdate (const NumEffectState &state, Move last_move, const CArray< int, 15 > &opening, const CArray< int, 15 > &ending, const CArray< int, 2 > &last_opening_value, const CArray< int, 2 > &last_ending_value)
 
static int index (int rel_x, int rel_y)
 
static void setUpBase (const Weights &weigths, CArray< int, 15 > &table)
 

Detailed Description

Definition at line 424 of file kingTable.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
DIM 

Definition at line 426 of file kingTable.h.

Member Function Documentation

◆ eval()

std::pair< osl::CArray< int, 2 >, osl::CArray< int, 2 > > osl::eval::ml::King25EmptySquareNoEffect::eval ( const NumEffectState state,
const CArray< int, 15 > &  opening,
const CArray< int, 15 > &  ending 
)
static

Definition at line 707 of file kingTable.cc.

◆ evalOne() [1/2]

template<osl::Player defense>
std::pair< int, int > osl::eval::ml::King25EmptySquareNoEffect::evalOne ( const NumEffectState state,
const CArray< int, 15 > &  opening,
const CArray< int, 15 > &  ending 
)
static

◆ evalOne() [2/2]

template<osl::Player defense>
int osl::eval::ml::King25EmptySquareNoEffect::evalOne ( const NumEffectState state,
const CArray< int, 15 > &  table 
)
static

◆ evalWithUpdate()

std::pair< osl::CArray< int, 2 >, osl::CArray< int, 2 > > osl::eval::ml::King25EmptySquareNoEffect::evalWithUpdate ( const NumEffectState state,
Move  last_move,
const CArray< int, 15 > &  opening,
const CArray< int, 15 > &  ending,
const CArray< int, 2 > &  last_opening_value,
const CArray< int, 2 > &  last_ending_value 
)
static

◆ index()

static int osl::eval::ml::King25EmptySquareNoEffect::index ( int  rel_x,
int  rel_y 
)
inlinestatic

Definition at line 437 of file kingTable.h.

◆ setUpBase()

void osl::eval::ml::King25EmptySquareNoEffect::setUpBase ( const Weights weigths,
CArray< int, 15 > &  table 
)
static

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