My Project
osl::eval::ml::PieceStandY Class Reference

#include <pieceStand.h>

Public Types

enum  { ONE_DIM = osl::Piece::SIZE * 9 , DIM = ONE_DIM * 2*EvalStages }
 

Public Member Functions

template<osl::Player P>
osl::MultiInt evalWithUpdate (const NumEffectState &state, Move moved, const MultiInt &last_value)
 

Static Public Member Functions

static void setUp (const Weights &weights)
 
static MultiInt eval (const NumEffectState &state)
 
template<Player P>
static MultiInt evalWithUpdate (const NumEffectState &state, Move moved, const MultiInt &last_value)
 

Static Private Member Functions

static int index (Ptype ptype, Player player, Square king, int count)
 
static int index (int i, Player player, Square king, int count)
 
static void updateResult (NumEffectState const &state, MultiInt &result, int i, Ptype ptype, CArray< Square, 2 > const &kings)
 

Static Private Attributes

static CArray< MultiInt, 360 > y_attack_table
 
static CArray< MultiInt, 360 > y_defense_table
 
static CArray< MultiInt, 9 *7 *19 > y_attack_table_sum
 
static CArray< MultiInt, 9 *7 *19 > y_defense_table_sum
 

Detailed Description

Definition at line 115 of file eval/pieceStand.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ONE_DIM 
DIM 

Definition at line 134 of file eval/pieceStand.h.

Member Function Documentation

◆ eval()

◆ evalWithUpdate() [1/2]

◆ evalWithUpdate() [2/2]

template<Player P>
static MultiInt osl::eval::ml::PieceStandY::evalWithUpdate ( const NumEffectState & state,
Move moved,
const MultiInt & last_value )
static

◆ index() [1/2]

static int osl::eval::ml::PieceStandY::index ( int i,
Player player,
Square king,
int count )
inlinestaticprivate

Definition at line 127 of file eval/pieceStand.h.

References osl::BLACK, and osl::Square::y().

◆ index() [2/2]

static int osl::eval::ml::PieceStandY::index ( Ptype ptype,
Player player,
Square king,
int count )
inlinestaticprivate

◆ setUp()

void osl::eval::ml::PieceStandY::setUp ( const Weights & weights)
static

◆ updateResult()

void osl::eval::ml::PieceStandY::updateResult ( NumEffectState const & state,
osl::MultiInt & result,
int i,
osl::Ptype ptype,
CArray< Square, 2 > const & kings )
inlinestaticprivate

Member Data Documentation

◆ y_attack_table

osl::CArray< osl::MultiInt, 360 > osl::eval::ml::PieceStandY::y_attack_table
staticprivate

Definition at line 118 of file eval/pieceStand.h.

◆ y_attack_table_sum

osl::CArray< osl::MultiInt, 9 *7 *19 > osl::eval::ml::PieceStandY::y_attack_table_sum
staticprivate

Definition at line 120 of file eval/pieceStand.h.

◆ y_defense_table

osl::CArray< osl::MultiInt, 360 > osl::eval::ml::PieceStandY::y_defense_table
staticprivate

Definition at line 119 of file eval/pieceStand.h.

◆ y_defense_table_sum

osl::CArray< osl::MultiInt, 9 *7 *19 > osl::eval::ml::PieceStandY::y_defense_table_sum
staticprivate

Definition at line 121 of file eval/pieceStand.h.


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