All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
osl::eval::MinorPieceBonus Class Reference

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

#include <minorPieceBonus.h>

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

List of all members.

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 [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]
int osl::eval::MinorPieceBonus::lanceBonus ( Progress16  progress16) const [inline, private]
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]
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().

Definition at line 26 of file minorPieceBonus.h.

Referenced by expect(), knightBonus(), MinorPieceBonus(), and update().

Definition at line 25 of file minorPieceBonus.h.

Referenced by expect(), lanceBonus(), MinorPieceBonus(), and update().

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines