#include <minorPiece.h>
|
enum | { DROP_DIM = PTYPE_SIZE*PTYPE_SIZE,
ONE_DIM = DROP_DIM*2*2,
DIM = ONE_DIM * EvalStages
} |
|
|
template<osl::Player Defense> |
osl::MultiIntPair | evalOne (const NumEffectState &state, bool has_knight, BoardMask &knight_fork_squares, std::pair< Square, int > &knight_drop) |
|
template<osl::Player P, osl::Player Defense> |
void | updateSquares (const NumEffectState &state, Move moved, BoardMask &knight_fork_squares) |
|
template<osl::Player Defense> |
osl::MultiIntPair | accumulate (const NumEffectState &state, bool has_knight, const BoardMask &knight_fork_squares, std::pair< Square, int > &knight_drop) |
|
template<osl::Player P> |
osl::MultiIntPair | evalWithUpdate (const NumEffectState &state, Move moved, CArray< BoardMask, 2 > &knight_fork_squares, CArray< std::pair< Square, int >, 2 > &knight_drop) |
|
|
static void | setUp (const Weights &weights) |
|
template<Player Defense> |
static MultiIntPair | evalOne (const NumEffectState &state, bool has_knight, BoardMask &knight_fork_squares, std::pair< Square, int > &knight_drop) |
|
static MultiIntPair | eval (const NumEffectState &state, CArray< BoardMask, 2 > &knight_fork_squares, CArray< std::pair< Square, int >, 2 > &knight_drop) |
|
template<Player P> |
static MultiIntPair | evalWithUpdate (const NumEffectState &state, Move moved, CArray< BoardMask, 2 > &knight_fork_squares, CArray< std::pair< Square, int >, 2 > &knight_drop) |
|
static bool | isForkSquare (const NumEffectState &state, Player defense, int y, int x0, int x1) |
|
static int | index (Ptype a, Ptype b) |
|
static bool | isTarget (Ptype ptype) |
|
|
template<Player P, Player Defense> |
static void | updateSquares (const NumEffectState &state, Move moved, BoardMask &knight_fork_squares) |
|
template<osl::Player Defense> |
static MultiIntPair | accumulate (const NumEffectState &state, bool has_knight, const BoardMask &knight_fork_squares, std::pair< Square, int > &knight_drop) |
|
Definition at line 1670 of file minorPiece.h.
template<osl::Player Defense>
static MultiIntPair osl::eval::ml::KnightFork::accumulate |
( |
const NumEffectState & |
state, |
|
|
bool |
has_knight, |
|
|
const BoardMask & |
knight_fork_squares, |
|
|
std::pair< Square, int > & |
knight_drop |
|
) |
| |
|
staticprivate |
template<osl::Player Defense>
osl::MultiIntPair osl::eval::ml::KnightFork::accumulate |
( |
const NumEffectState & |
state, |
|
|
bool |
has_knight, |
|
|
const BoardMask & |
knight_fork_squares, |
|
|
std::pair< Square, int > & |
knight_drop |
|
) |
| |
osl::MultiIntPair osl::eval::ml::KnightFork::eval |
( |
const NumEffectState & |
state, |
|
|
CArray< BoardMask, 2 > & |
knight_fork_squares, |
|
|
CArray< std::pair< Square, int >, 2 > & |
knight_drop |
|
) |
| |
|
static |
template<Player Defense>
static MultiIntPair osl::eval::ml::KnightFork::evalOne |
( |
const NumEffectState & |
state, |
|
|
bool |
has_knight, |
|
|
BoardMask & |
knight_fork_squares, |
|
|
std::pair< Square, int > & |
knight_drop |
|
) |
| |
|
static |
template<osl::Player Defense>
osl::MultiIntPair osl::eval::ml::KnightFork::evalOne |
( |
const NumEffectState & |
state, |
|
|
bool |
has_knight, |
|
|
BoardMask & |
knight_fork_squares, |
|
|
std::pair< Square, int > & |
knight_drop |
|
) |
| |
Definition at line 2669 of file minorPiece.cc.
References osl::BLACK, osl::Piece::isOnBoardByOwner(), osl::KNIGHT, osl::LANCE, osl::PAWN, osl::playerToIndex(), osl::playerToMul(), osl::Piece::ptype(), result, osl::Piece::square(), target, osl::WHITE, osl::Square::x(), and osl::Square::y().
template<Player P>
template MultiIntPair osl::eval::ml::KnightFork::evalWithUpdate< WHITE > |
( |
const NumEffectState & |
state, |
|
|
Move |
moved, |
|
|
CArray< BoardMask, 2 > & |
knight_fork_squares, |
|
|
CArray< std::pair< Square, int >, 2 > & |
knight_drop |
|
) |
| |
|
static |
template<osl::Player P>
osl::MultiIntPair osl::eval::ml::KnightFork::evalWithUpdate |
( |
const NumEffectState & |
state, |
|
|
Move |
moved, |
|
|
CArray< BoardMask, 2 > & |
knight_fork_squares, |
|
|
CArray< std::pair< Square, int >, 2 > & |
knight_drop |
|
) |
| |
static int osl::eval::ml::KnightFork::index |
( |
Ptype |
a, |
|
|
Ptype |
b |
|
) |
| |
|
inlinestatic |
static bool osl::eval::ml::KnightFork::isForkSquare |
( |
const NumEffectState & |
state, |
|
|
Player |
defense, |
|
|
int |
y, |
|
|
int |
x0, |
|
|
int |
x1 |
|
) |
| |
|
static |
static bool osl::eval::ml::KnightFork::isTarget |
( |
Ptype |
ptype) | |
|
|
inlinestatic |
void osl::eval::ml::KnightFork::setUp |
( |
const Weights & |
weights) | |
|
|
static |
template<Player P, Player Defense>
static void osl::eval::ml::KnightFork::updateSquares |
( |
const NumEffectState & |
state, |
|
|
Move |
moved, |
|
|
BoardMask & |
knight_fork_squares |
|
) |
| |
|
staticprivate |
template<osl::Player P, osl::Player Defense>
void osl::eval::ml::KnightFork::updateSquares |
( |
const NumEffectState & |
state, |
|
|
Move |
moved, |
|
|
BoardMask & |
knight_fork_squares |
|
) |
| |
Definition at line 2787 of file minorPiece.cc.
References osl::BLACK, osl::Move::from(), osl::Move::isCapture(), osl::Move::isDrop(), osl::L, osl::Square::neighbor(), osl::Move::ptype(), osl::R, osl::Move::to(), osl::U, osl::UUL, osl::UUR, osl::WHITE, and osl::Square::y().
osl::CArray< osl::MultiInt, 256 *2 *2 > osl::eval::ml::KnightFork::table |
|
static |
The documentation for this class was generated from the following files: