All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
osl::eval::MinorPieceBonus Class Reference

歩切れなどの評価 More...

#include <minorPieceBonus.h>

Collaboration diagram for osl::eval::MinorPieceBonus:
Collaboration graph
[legend]

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
 

Detailed Description

歩切れなどの評価

Definition at line 22 of file minorPieceBonus.h.

Constructor & Destructor Documentation

osl::eval::MinorPieceBonus::MinorPieceBonus ( const SimpleState &  state)
inline

Member Function Documentation

MinorPieceDebugInfo osl::eval::MinorPieceBonus::debugInfo ( Progress16  progress16,
Progress16  black,
Progress16  white 
) const
inline
int osl::eval::MinorPieceBonus::expect ( const SimpleState &  state,
Move  move,
Progress16  progress16,
Progress16  black,
Progress16  white 
) const
inline
int osl::eval::MinorPieceBonus::goldBonus ( Progress16  black,
Progress16  white 
) const
inlineprivate

Definition at line 113 of file minorPieceBonus.h.

References osl::BLACK, golds, and osl::WHITE.

Referenced by debugInfo(), and value().

int osl::eval::MinorPieceBonus::knightBonus ( Progress16  progress16) const
inlineprivate

Definition at line 90 of file minorPieceBonus.h.

References osl::BLACK, knight_on_stand, result, and osl::WHITE.

Referenced by debugInfo(), and value().

int osl::eval::MinorPieceBonus::lanceBonus ( Progress16  progress16) const
inlineprivate

Definition at line 67 of file minorPieceBonus.h.

References osl::BLACK, lance_on_stand, result, and osl::WHITE.

Referenced by debugInfo(), and value().

int osl::eval::MinorPieceBonus::pawnBonus ( Progress16  progress16) const
inlineprivate

Definition at line 30 of file minorPieceBonus.h.

References osl::BLACK, pawn_on_stand, pawns, result, and osl::WHITE.

Referenced by debugInfo(), and value().

void osl::eval::MinorPieceBonus::update ( const SimpleState &  ,
Move  last_move 
)
inline
int osl::eval::MinorPieceBonus::value ( Progress16  progress16,
Progress16  black,
Progress16  white 
) const
inline

Member Data Documentation

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().


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