歩切れなどの評価 More...
#include <minorPieceBonus.h>
Public Member Functions | |
MinorPieceBonus (const SimpleState &state) | |
int | value (Progress16 progress16, Progress16 black, Progress16 white) const |
void | update (const SimpleState &, Move last_move) |
int | expect (const SimpleState &state, Move move, Progress16 progress16, Progress16 black, Progress16 white) const |
MinorPieceDebugInfo | debugInfo (Progress16 progress16, Progress16 black, Progress16 white) const |
Private Member Functions | |
int | pawnBonus (Progress16 progress16) const |
int | lanceBonus (Progress16 progress16) const |
int | knightBonus (Progress16 progress16) const |
int | goldBonus (Progress16 black, Progress16 white) const |
Private Attributes | |
CArray< int, 2 > | pawn_on_stand |
CArray< int, 2 > | lance_on_stand |
CArray< int, 2 > | knight_on_stand |
CArray< int, 2 > | pawns |
CArray< int, 2 > | golds |
歩切れなどの評価
Definition at line 22 of file minorPieceBonus.h.
osl::eval::MinorPieceBonus::MinorPieceBonus | ( | const SimpleState & | state | ) | [inline] |
Definition at line 132 of file minorPieceBonus.h.
References osl::BLACK, golds, osl::PtypeTraits< GOLD >::indexMin, osl::PtypeTraits< PAWN >::indexMin, osl::KNIGHT, knight_on_stand, osl::LANCE, lance_on_stand, osl::Piece::owner(), osl::PAWN, pawn_on_stand, pawns, and osl::WHITE.
MinorPieceDebugInfo osl::eval::MinorPieceBonus::debugInfo | ( | Progress16 | progress16, |
Progress16 | black, | ||
Progress16 | white | ||
) | const [inline] |
Definition at line 261 of file minorPieceBonus.h.
References osl::eval::MinorPieceDebugInfo::gold_bonus, goldBonus(), osl::eval::MinorPieceDebugInfo::knight_bonus, knightBonus(), osl::eval::MinorPieceDebugInfo::lance_bonus, lanceBonus(), osl::eval::MinorPieceDebugInfo::pawn_bonus, and pawnBonus().
int osl::eval::MinorPieceBonus::expect | ( | const SimpleState & | state, |
Move | move, | ||
Progress16 | progress16, | ||
Progress16 | black, | ||
Progress16 | white | ||
) | const [inline] |
Definition at line 216 of file minorPieceBonus.h.
References osl::alt(), osl::BLACK, osl::Move::capturePtype(), osl::GOLD, golds, osl::Move::isDrop(), osl::KNIGHT, knight_on_stand, osl::LANCE, lance_on_stand, osl::PAWN, pawn_on_stand, pawns, osl::Move::ptype(), osl::PTYPE_EMPTY, osl::unpromote(), value(), and osl::WHITE.
int osl::eval::MinorPieceBonus::goldBonus | ( | Progress16 | black, |
Progress16 | white | ||
) | const [inline, private] |
Definition at line 113 of file minorPieceBonus.h.
References osl::BLACK, golds, osl::eval::PtypeEvalTraits< GOLD >::val, and osl::WHITE.
Referenced by debugInfo(), and value().
int osl::eval::MinorPieceBonus::knightBonus | ( | Progress16 | progress16 | ) | const [inline, private] |
Definition at line 90 of file minorPieceBonus.h.
References osl::BLACK, knight_on_stand, result, osl::eval::PtypeEvalTraits< PAWN >::val, osl::eval::PtypeEvalTraits< KNIGHT >::val, and osl::WHITE.
Referenced by debugInfo(), and value().
int osl::eval::MinorPieceBonus::lanceBonus | ( | Progress16 | progress16 | ) | const [inline, private] |
Definition at line 67 of file minorPieceBonus.h.
References osl::BLACK, lance_on_stand, result, osl::eval::PtypeEvalTraits< PAWN >::val, osl::eval::PtypeEvalTraits< LANCE >::val, and osl::WHITE.
Referenced by debugInfo(), and value().
int osl::eval::MinorPieceBonus::pawnBonus | ( | Progress16 | progress16 | ) | const [inline, private] |
Definition at line 30 of file minorPieceBonus.h.
References osl::BLACK, pawn_on_stand, pawns, result, osl::eval::PtypeEvalTraits< PAWN >::val, and osl::WHITE.
Referenced by debugInfo(), and value().
void osl::eval::MinorPieceBonus::update | ( | const SimpleState & | , |
Move | last_move | ||
) | [inline] |
Definition at line 170 of file minorPieceBonus.h.
References osl::alt(), osl::BLACK, osl::captured(), osl::Move::capturePtype(), osl::GOLD, golds, osl::Move::isDrop(), osl::KNIGHT, knight_on_stand, osl::LANCE, lance_on_stand, osl::PAWN, pawn_on_stand, pawns, osl::Move::player(), osl::Move::ptype(), osl::PTYPE_EMPTY, osl::unpromote(), and osl::WHITE.
int osl::eval::MinorPieceBonus::value | ( | Progress16 | progress16, |
Progress16 | black, | ||
Progress16 | white | ||
) | const [inline] |
Definition at line 162 of file minorPieceBonus.h.
References goldBonus(), knightBonus(), lanceBonus(), and pawnBonus().
Referenced by expect(), osl::eval::ProgressEvalGeneral< progress_eval_opening_t >::minorPieceValue(), and osl::eval::ProgressEvalGeneral< progress_eval_opening_t >::value().
CArray<int,2> osl::eval::MinorPieceBonus::golds [private] |
Definition at line 28 of file minorPieceBonus.h.
Referenced by expect(), goldBonus(), MinorPieceBonus(), and update().
CArray<int,2> osl::eval::MinorPieceBonus::knight_on_stand [private] |
Definition at line 26 of file minorPieceBonus.h.
Referenced by expect(), knightBonus(), MinorPieceBonus(), and update().
CArray<int,2> osl::eval::MinorPieceBonus::lance_on_stand [private] |
Definition at line 25 of file minorPieceBonus.h.
Referenced by expect(), lanceBonus(), MinorPieceBonus(), and update().
CArray<int,2> osl::eval::MinorPieceBonus::pawn_on_stand [private] |
Definition at line 24 of file minorPieceBonus.h.
Referenced by expect(), MinorPieceBonus(), pawnBonus(), and update().
CArray<int,2> osl::eval::MinorPieceBonus::pawns [private] |
Definition at line 27 of file minorPieceBonus.h.
Referenced by expect(), MinorPieceBonus(), pawnBonus(), and update().